playsink: make extra sure to pass 64-bit integer to g_object_set when setting ts-offset

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.
This commit is contained in:
Tim-Philipp Müller 2012-07-03 20:07:44 +01:00
parent b362ec3a57
commit 99103be50c

View 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");
}