mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
media: signal unprepared when we actually finish
This commit is contained in:
parent
84b7cf1590
commit
0d55e1f50c
1 changed files with 5 additions and 6 deletions
|
@ -1287,12 +1287,6 @@ gst_rtsp_media_unprepare (GstRTSPMedia * media)
|
|||
finish_unprepare (media);
|
||||
}
|
||||
|
||||
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 success;
|
||||
}
|
||||
|
||||
|
@ -1323,7 +1317,12 @@ finish_unprepare (GstRTSPMedia * media)
|
|||
gst_object_unref (media->pipeline);
|
||||
media->pipeline = NULL;
|
||||
|
||||
media->reused = TRUE;
|
||||
media->status = GST_RTSP_MEDIA_STATUS_UNPREPARED;
|
||||
|
||||
/* 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);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue