[gstreamer-bugs] [Bug 611899] New: hanging of gst-rtsp-server for unsupported fies:

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Mar 5 05:23:36 PST 2010


https://bugzilla.gnome.org/show_bug.cgi?id=611899
  GStreamer | gst-rtsp-server | unspecified

           Summary: hanging of gst-rtsp-server for unsupported fies:
    Classification: Desktop
           Product: GStreamer
           Version: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: Normal
         Component: gst-rtsp-server
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: bsreerenj at gmail.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
      GNOME target: ---
     GNOME version: ---


Created an attachment (id=155309)
 --> (https://bugzilla.gnome.org/attachment.cgi?id=155309)
patch for avoid hanging: 

Hi,

I found that the gst-rtsp-server is hanging if the media is  not a supported
one(having no stream in it,or correpted stream). And the server is not
accepting further requests there after.

The pipeline I used is

     filesrc location=video.mp4 ! qtdemux  !  queue ! rtpmp4vpay name=pay0
pt=96  

Which is working fine for all videos having mpeg4 video codec.

Suppose the video.mp4 is just a name having no media. 

The server is infinitely waiting  there in the following line in
gst-rtsp-server/gst/rtsp-media.c :

     ret = gst_element_get_state (media->pipeline, NULL, NULL , -1);

If I change the infinite waiting option (-1) to a specific value, then the
gst_element_get_state will return GST_STATE_CHANGE_ASYNC.So I think it is
better specify a unique value instead of infinite  option.

And I here by adding this as a patch.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list