gst/playback/gstplaybasebin.c: Throw a more comprehensible error for rtsp:// URIs (rather than erroring out with a ne...

Original commit message from CVS:
* gst/playback/gstplaybasebin.c: (gen_source_element):
Throw a more comprehensible error for rtsp:// URIs (rather
than erroring out with a negotiation error later on) until
we fix playbin to handle rtspsrc etc.
This commit is contained in:
Tim-Philipp Müller 2006-05-30 19:00:39 +00:00
parent 92f9e6ad77
commit d100e58eea
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2006-05-30 Tim-Philipp Müller <tim at centricular dot net>
* gst/playback/gstplaybasebin.c: (gen_source_element):
Throw a more comprehensible error for rtsp:// URIs (rather
than erroring out with a negotiation error later on) until
we fix playbin to handle rtspsrc etc.
2006-05-30 Wim Taymans <wim@fluendo.com>
* ext/pango/gsttextoverlay.c: (gst_text_overlay_src_event),

View file

@ -1242,6 +1242,13 @@ gen_source_element (GstPlayBaseBin * play_base_bin, GstElement ** subbin)
/* stip subtitle from uri */
if (!play_base_bin->uri)
return NULL;
if (g_str_has_prefix (play_base_bin->uri, "rtsp://")) {
GST_ELEMENT_ERROR (play_base_bin, RESOURCE, FAILED,
(_("RTSP streams cannot be played yet.")), (NULL));
return NULL;
}
if (play_base_bin->suburi) {
/* subtitle specified */
*subbin = setup_subtitle (play_base_bin, play_base_bin->suburi);