mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
rtspsrc: set PLAYING state after configuring caps
We set to PLAYING after we have configured the caps, otherwise we might end up calling request_key (with SRTP) while caps are still being configured, ending in a crash. https://bugzilla.gnome.org/show_bug.cgi?id=740505
This commit is contained in:
parent
953789fb8e
commit
07c5d1820a
1 changed files with 5 additions and 2 deletions
|
@ -7426,8 +7426,6 @@ gst_rtspsrc_play (GstRTSPSrc * src, GstSegment * segment, gboolean async)
|
|||
if (src->manager)
|
||||
g_signal_emit_by_name (src->manager, "reset-sync", NULL);
|
||||
|
||||
gst_rtspsrc_set_state (src, GST_STATE_PLAYING);
|
||||
|
||||
/* construct a control url */
|
||||
control = get_aggregate_control (src);
|
||||
|
||||
|
@ -7549,6 +7547,11 @@ gst_rtspsrc_play (GstRTSPSrc * src, GstSegment * segment, gboolean async)
|
|||
* the manager object when we set a new Range header (we did a seek) */
|
||||
gst_rtspsrc_configure_caps (src, segment, src->need_range);
|
||||
|
||||
/* set to PLAYING after we have configured the caps, otherwise we
|
||||
* might end up calling request_key (with SRTP) while caps are still
|
||||
* being configured. */
|
||||
gst_rtspsrc_set_state (src, GST_STATE_PLAYING);
|
||||
|
||||
/* set again when needed */
|
||||
src->need_range = FALSE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue