mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 18:20:44 +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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
|
is_reused:
|
||||||
|
{
|
||||||
|
GST_WARNING ("can not reuse media %p", media);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
state_failed:
|
state_failed:
|
||||||
{
|
{
|
||||||
GST_WARNING ("failed to preroll pipeline");
|
GST_WARNING ("failed to preroll pipeline");
|
||||||
unlock_streams (media);
|
unlock_streams (media);
|
||||||
gst_element_set_state (media->pipeline, GST_STATE_NULL);
|
gst_element_set_state (media->pipeline, GST_STATE_NULL);
|
||||||
return FALSE;
|
gst_rtsp_media_unprepare (media);
|
||||||
}
|
|
||||||
is_reused:
|
|
||||||
{
|
|
||||||
GST_WARNING ("can not reuse media %p", media);
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue