mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
Set pipeline's state to NULL no matter if the media is reusable and emit unprepared signal in gst_rtsp_media_unprepare
This commit is contained in:
parent
9b7cb2a4ef
commit
708c8daaec
1 changed files with 7 additions and 7 deletions
|
@ -1155,13 +1155,13 @@ gst_rtsp_media_unprepare (GstRTSPMedia *media)
|
|||
if (!media->prepared)
|
||||
return TRUE;
|
||||
|
||||
if (media->reusable) {
|
||||
g_message ("unprepare media %p", media);
|
||||
media->target_state = GST_STATE_NULL;
|
||||
gst_element_set_state (media->pipeline, GST_STATE_NULL);
|
||||
media->prepared = FALSE;
|
||||
media->reused = TRUE;
|
||||
}
|
||||
g_message ("unprepare media %p", media);
|
||||
media->target_state = GST_STATE_NULL;
|
||||
gst_element_set_state (media->pipeline, GST_STATE_NULL);
|
||||
media->prepared = FALSE;
|
||||
media->reused = FALSE;
|
||||
g_signal_emit_by_name (media, "unprepared", NULL);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue