[Bug 774806] New: user-agent duplicated in rtspsrc header

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Nov 21 17:53:42 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=774806

            Bug ID: 774806
           Summary: user-agent duplicated in rtspsrc header
    Classification: Platform
           Product: GStreamer
           Version: 1.x
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-good
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: stuart.weaver at datapath.co.uk
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 340464
  --> https://bugzilla.gnome.org/attachment.cgi?id=340464&action=edit
Quick work around fix

The commit from:

https://bugzilla.gnome.org/show_bug.cgi?id=750101 

causes rtspsrc to add two 'user-agents' to the rtsp header.

This causes problems with some rtsp servers (tested with Panasonic cameras) as
they reply back 400 (Bad Request) and hence the stream does not connect
(viewable in logs as well as wireshark).

I've tested with v1.6, however, believe the issue to remain in master (I'll try
and get round to testing with master when I can!).

It appears that gst_rtsp_ext_list_before_send() does not check whether any
initialisation has been done already and hence just adds what it gets from the
iface.

So far I've just added some code to check if there's multiple
GST_RTSP_HDR_USER_AGENT's in the message header in gst_rtspsrc_try_send() and
remove the header value if needed. A better solution would be to add
functionality to either have gst_rtsp_ext_list_before_send() check whether
something has been already initialised, or check against rtsp_headers[] to see
if there are multiples of headers when there shouldn't be and remove the
latest. 

Any pointers would be helpful on where best to implement this!

Cheers,
Stu

-- 
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