GNOME Bugzilla – Bug 506025
RTSPsrc doesn't handle redirects.
Last modified: 2007-12-31 13:28:17 UTC
Please describe the problem: When rtsp server replies with 301 or 302 (moved permanently or temporarily), rtspsrc treats this as error and stops. Steps to reproduce: 1. Try to open any RTSP server, which redirects its clients. Actual results: gst-launch-0.10 rtspsrc location="rtsp://address.of.server/path/" ! fakesink writes "got error 302 (Moved temporarily)", and stops Expected results: RTSPsrc was to get new location from Location: header and go to it. Does this happen every time? Yes. Other information:
Created attachment 101742 [details] [review] Patch to gstreamer plugins allowing handling redirects (301 and 302)
Sorry for inconveniences, probably paths to files should be fixed.
Created attachment 101786 [details] [review] patch for handling redirects
I modified your patch a bit, the redirect should change the status of the receiver and could happen with every request. * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_send), (gst_rtspsrc_open): * gst/rtsp/gstrtspsrc.h: Implement redirect for the DESCRIBE reply. Fixes #506025.