playsink: make extra sure to pass 64-bit integer to g_object_set when setting ts...
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 3 Jul 2012 19:07:44 +0000 (20:07 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 3 Jul 2012 19:32:57 +0000 (20:32 +0100)
Might just be paranoia, but better safe than sorry. Make sure
the compiler really always passes a 64-bit integer to the
g_object_set() vararg function.

gst/playback/gstplaysink.c

index 4689740..0df46ce 100644 (file)
@@ -3600,8 +3600,10 @@ update_av_offset (GstPlaySink * playsink)
   vchain = (GstPlayVideoChain *) playsink->videochain;
 
   if (achain && vchain && achain->ts_offset && vchain->ts_offset) {
-    g_object_set (achain->ts_offset, "ts-offset", MAX (0, -av_offset), NULL);
-    g_object_set (vchain->ts_offset, "ts-offset", MAX (0, av_offset), NULL);
+    g_object_set (achain->ts_offset,
+        "ts-offset", MAX (G_GINT64_CONSTANT (0), -av_offset), NULL);
+    g_object_set (vchain->ts_offset,
+        "ts-offset", MAX (G_GINT64_CONSTANT (0), av_offset), NULL);
   } else {
     GST_LOG_OBJECT (playsink, "no ts_offset elements");
   }