mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
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:
parent
92f9e6ad77
commit
d100e58eea
2 changed files with 14 additions and 0 deletions
|
@ -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),
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue