mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
rtspmedia: emit "unprepared" if _prepare fails.
Emit the unprepared signal if gst_rtsp_media_prepare fails so that the media object is removed from its factory's cache.
This commit is contained in:
parent
2997806d43
commit
5f535ecf87
1 changed files with 6 additions and 5 deletions
|
@ -1410,16 +1410,17 @@ was_prepared:
|
|||
return TRUE;
|
||||
}
|
||||
/* ERRORS */
|
||||
is_reused:
|
||||
{
|
||||
GST_WARNING ("can not reuse media %p", media);
|
||||
return FALSE;
|
||||
}
|
||||
state_failed:
|
||||
{
|
||||
GST_WARNING ("failed to preroll pipeline");
|
||||
unlock_streams (media);
|
||||
gst_element_set_state (media->pipeline, GST_STATE_NULL);
|
||||
return FALSE;
|
||||
}
|
||||
is_reused:
|
||||
{
|
||||
GST_WARNING ("can not reuse media %p", media);
|
||||
gst_rtsp_media_unprepare (media);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue