mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
gstpipeline: fix failed assertion caused by seeking pipeline with NULL clock
Under certain GST_STATE_CHANGED_PAUSED_TO_PLAYING transitions, a pipeline with a NULL clock will fail an assertion due to an unchecked call to gst_object_ref(). This is fixed by simply adding a check and only ref-ing if the clock is not NULL. https://bugzilla.gnome.org/show_bug.cgi?id=693065
This commit is contained in:
parent
ea6b05d126
commit
6b717600b5
1 changed files with 4 additions and 1 deletions
|
@ -405,7 +405,10 @@ gst_pipeline_change_state (GstElement * element, GstStateChange transition)
|
||||||
} else {
|
} else {
|
||||||
GST_DEBUG_OBJECT (pipeline,
|
GST_DEBUG_OBJECT (pipeline,
|
||||||
"Don't need to update clock, using old clock.");
|
"Don't need to update clock, using old clock.");
|
||||||
clock = gst_object_ref (cur_clock);
|
/* only try to ref if cur_clock is not NULL */
|
||||||
|
if (cur_clock)
|
||||||
|
gst_object_ref (cur_clock);
|
||||||
|
clock = cur_clock;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (clock) {
|
if (clock) {
|
||||||
|
|
Loading…
Reference in a new issue