mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 05:12:09 +00:00
media: set state to unpreparing when unprepare is initiated
https://bugzilla.gnome.org/show_bug.cgi?id=737675
This commit is contained in:
parent
404a80e38a
commit
d48e022c13
1 changed files with 1 additions and 2 deletions
|
@ -2471,6 +2471,7 @@ default_unprepare (GstRTSPMedia * media)
|
|||
/* we need to go to playing again for the EOS to propagate, normally in this
|
||||
* state, nothing is receiving data from us anymore so this is ok. */
|
||||
set_state (media, GST_STATE_PLAYING);
|
||||
gst_rtsp_media_set_status (media, GST_RTSP_MEDIA_STATUS_UNPREPARING);
|
||||
} else {
|
||||
finish_unprepare (media);
|
||||
}
|
||||
|
@ -2511,8 +2512,6 @@ gst_rtsp_media_unprepare (GstRTSPMedia * media)
|
|||
set_target_state (media, GST_STATE_NULL, FALSE);
|
||||
success = TRUE;
|
||||
|
||||
gst_rtsp_media_set_status (media, GST_RTSP_MEDIA_STATUS_UNPREPARING);
|
||||
|
||||
if (priv->status == GST_RTSP_MEDIA_STATUS_PREPARED) {
|
||||
GstRTSPMediaClass *klass;
|
||||
|
||||
|
|
Loading…
Reference in a new issue