gst/rtsp/gstrtspsrc.c: Don't assume the server supports PAUSE by default. Fixes #551048.

Original commit message from CVS:
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_parse_methods):
Don't assume the server supports PAUSE by default. Fixes #551048.
This commit is contained in:
Wim Taymans 2008-09-25 12:07:46 +00:00
parent 712cd620af
commit b1dfdc758e
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2008-09-25 Wim Taymans <wim.taymans@collabora.co.uk>
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_parse_methods):
Don't assume the server supports PAUSE by default. Fixes #551048.
2008-09-25 Wim Taymans <wim.taymans@collabora.co.uk> 2008-09-25 Wim Taymans <wim.taymans@collabora.co.uk>
* gst/udp/gstudpsrc.c: (gst_udpsrc_class_init), * gst/udp/gstudpsrc.c: (gst_udpsrc_class_init),

View file

@ -3550,14 +3550,14 @@ gst_rtspsrc_parse_methods (GstRTSPSrc * src, GstRTSPMessage * response)
if (src->methods == 0) { if (src->methods == 0) {
/* neither Allow nor Public are required, assume the server supports /* neither Allow nor Public are required, assume the server supports
* at least DESCRIBE, SETUP, we always assume it supports PLAY and PAUSE as * at least DESCRIBE, SETUP, we always assume it supports PLAY as
* well. */ * well. */
GST_DEBUG_OBJECT (src, "could not get OPTIONS"); GST_DEBUG_OBJECT (src, "could not get OPTIONS");
src->methods = GST_RTSP_DESCRIBE | GST_RTSP_SETUP; src->methods = GST_RTSP_DESCRIBE | GST_RTSP_SETUP;
} }
/* always assume PLAY and PAUSED, FIXME, extensions should be able to override /* always assume PLAY, FIXME, extensions should be able to override
* this */ * this */
src->methods |= GST_RTSP_PLAY | GST_RTSP_PAUSE; src->methods |= GST_RTSP_PLAY;
/* we need describe and setup */ /* we need describe and setup */
if (!(src->methods & GST_RTSP_DESCRIBE)) if (!(src->methods & GST_RTSP_DESCRIBE))