GNOME Bugzilla – Bug 437563
URIs with upper-case protocol don't play
Last modified: 2007-05-11 14:30:04 UTC
Please describe the problem: I can not play MMS URIs with an uppercase protocol part. For example the following command will not work in Ubuntu Feisty: "gst-launch-0.10 playbin uri=MMS://wm.rbcmp3.com/45599/45599-01.asf" Steps to reproduce: 1. Open a terminal 2. Execute the following command: "gst-launch-0.10 playbin uri=MMS://wm.rbcmp3.com/45599/45599-01.asf" Actual results: gst-launch exits with the following output: Setting pipeline to PAUSED ... ERROR: Pipeline doesn't want to pause. ERROR: from element /playbin0: A MMS protocol source plugin is required to play this stream, but not installed. Additional debug info: gstplaybasebin.c(1581): gen_source_element (): /playbin0: No URI handler for MMS Setting pipeline to NULL ... FREEING pipeline ... Expected results: The same command but with lower case protocol starts playing music with the following output: jeroen@jeroen-desktop:~$ gst-launch-0.10 playbin uri=mms://wm.rbcmp3.com/45599/45599-01.asf Setting pipeline to PAUSED ... Pipeline is PREROLLING ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstAudioSinkClock Does this happen every time? Yes Other information: I have fixed this problem by lower-casing the protocol part in the function gst_uri_get_protocol, before having it compared to the feature list in the registry. This may not be a perfect solution, but it works for me. --- gstreamer0.10-0.10.12/gst/gsturi.c 2006-11-06 16:18:57.000000000 +0100 +++ gstreamer0.10-0.10.12_test/gst/gsturi.c 2007-05-09 19:19:29.000000000 +0200 @@ -369,7 +369,7 @@ colon = strstr (uri, "://"); - return g_strndup (uri, colon - uri); + return g_strdown (g_strndup (uri, colon - uri)); } /**
Ah, why not. Committed, thanks for the patch: 2007-05-11 Tim-Philipp Müller <tim at centricular dot net> Patch by: Jeroen Wouters <woutersj at gmail com> * gst/gsturi.c: (gst_uri_get_protocol), (search_by_entry): Treat protocol strings in a case-insensitive way (#437563).