[gstreamer-bugs] [Bug 437563] New: URIs with upper-case protocol don't play

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Thu May 10 14:51:57 PDT 2007


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=437563

  GStreamer | gstreamer (core) | Ver: 0.10.12
           Summary: URIs with upper-case protocol don't play
           Product: GStreamer
           Version: 0.10.12
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: woutersj at gmail.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: 2.17/2.18
   GNOME milestone: Unspecified


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 at 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));
 }

 /**


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=437563.




More information about the Gstreamer-bugs mailing list