mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
media: emit the unprepared signal by id
Emit the unprepared signal by id instead of name and set the media as reused.
This commit is contained in:
parent
708c8daaec
commit
6ffd7432a5
1 changed files with 6 additions and 2 deletions
|
@ -1158,9 +1158,13 @@ gst_rtsp_media_unprepare (GstRTSPMedia *media)
|
|||
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);
|
||||
media->reused = TRUE;
|
||||
|
||||
/* when the media is not reusable, this will effectively unref the media and
|
||||
* recreate it */
|
||||
g_signal_emit (media, gst_rtsp_media_signals[SIGNAL_UNPREPARED], 0, NULL);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue