mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 15:56:42 +00:00
qtdemux: Avoid crash on reconfiguring.
When reconfiguring a stream that never created an output pad, don't access a NULL GstPad pointer. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2869>
This commit is contained in:
parent
a3037eb453
commit
c2fa0b50ce
1 changed files with 2 additions and 1 deletions
|
@ -13596,7 +13596,8 @@ qtdemux_reuse_and_configure_stream (GstQTDemux * qtdemux,
|
|||
|
||||
/* unset new_stream to prevent stream-start event, unless we are EOS in which
|
||||
* case we need to force one through */
|
||||
newstream->new_stream = GST_PAD_IS_EOS (newstream->pad);
|
||||
newstream->new_stream = newstream->pad != NULL
|
||||
&& GST_PAD_IS_EOS (newstream->pad);
|
||||
|
||||
return gst_qtdemux_configure_stream (qtdemux, newstream);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue