summaryrefslogtreecommitdiffstats
path: root/src/polypsink.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/polypsink.c')
-rw-r--r--src/polypsink.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/polypsink.c b/src/polypsink.c
index d3d03b0..8e8a0b2 100644
--- a/src/polypsink.c
+++ b/src/polypsink.c
@@ -498,8 +498,8 @@ static guint gst_polypsink_delay(GstAudioSink *asink) {
}
pa_threaded_mainloop_unlock(polypsink->mainloop);
-
- return (guint) ((t * polypsink->sample_spec.rate) / 1000000LL);
+
+ return gst_util_uint64_scale_int (t, polypsink->sample_spec.rate, 1000000LL);
unlock_and_fail:
@@ -592,8 +592,6 @@ static gboolean gst_polypsink_event(GstBaseSink *sink, GstEvent *event) {
gst_tag_list_get_string(l, GST_TAG_LOCATION, &location);
gst_tag_list_get_string(l, GST_TAG_DESCRIPTION, &description);
- gst_tag_list_free(l);
-
if (title && artist)
t = buf = g_strdup_printf("'%s' by '%s'", title, artist);
else if (title)