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:
Alessandro Decina 2010-03-09 10:27:38 +01:00 committed by Wim Taymans
parent 2997806d43
commit 5f535ecf87

View file

@ -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;
}
}