mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
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:
parent
b362ec3a57
commit
99103be50c
1 changed files with 4 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue