mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 05:12:09 +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)
|
if (!media->prepared)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
if (media->reusable) {
|
g_message ("unprepare media %p", media);
|
||||||
g_message ("unprepare media %p", media);
|
media->target_state = GST_STATE_NULL;
|
||||||
media->target_state = GST_STATE_NULL;
|
gst_element_set_state (media->pipeline, GST_STATE_NULL);
|
||||||
gst_element_set_state (media->pipeline, GST_STATE_NULL);
|
media->prepared = FALSE;
|
||||||
media->prepared = FALSE;
|
media->reused = FALSE;
|
||||||
media->reused = TRUE;
|
g_signal_emit_by_name (media, "unprepared", NULL);
|
||||||
}
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue