+2007-05-17 Wim Taymans <wim@fluendo.com>
+
+ * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_send),
+ (gst_rtspsrc_setup_streams):
+ Ignore streams that fail the setup command, we will retry with a
+ different transport later on.
+
+ * gst/rtsp/rtspextwms.c: (rtsp_ext_wms_parse_sdp),
+ (rtsp_ext_wms_configure_stream):
+ Fix encoding name case.
+
2007-05-16 Edward Hervey <edward@fluendo.com>
* ext/libpng/gstpngdec.c: (user_endrow_callback), (user_read_data):
for (walk = src->streams; walk; walk = g_list_next (walk)) {
gchar *transports;
+ RTSPStatusCode code;
stream = (GstRTSPStream *) walk->data;
rtsp_message_add_header (&request, RTSP_HDR_TRANSPORT, transports);
g_free (transports);
- if ((res = gst_rtspsrc_send (src, &request, &response, NULL) < 0))
+ /* handle the code ourselves */
+ if ((res = gst_rtspsrc_send (src, &request, &response, &code) < 0))
goto send_error;
+ switch (code) {
+ case RTSP_STS_OK:
+ break;
+ case RTSP_STS_UNSUPPORTED_TRANSPORT:
+ /* cleanup of leftover transport */
+ gst_rtspsrc_stream_free_udp (stream);
+ goto next_stream;
+ default:
+ goto send_error;
+ }
+
/* parse response transport */
{
gchar *resptrans = NULL;
stream);
}
}
+ next_stream:
/* clean up our transport struct */
rtsp_transport_init (&transport);
}
if (maxps)
gst_structure_set (src->props, "maxps", G_TYPE_STRING, maxps, NULL);
- gst_structure_set (src->props, "encoding-name", G_TYPE_STRING, "x-asf-pf",
+ gst_structure_set (src->props, "encoding-name", G_TYPE_STRING, "X-ASF-PF",
NULL);
gst_structure_set (src->props, "media", G_TYPE_STRING, "application", NULL);
encoding);
/* rtx streams do not need to be configured */
- if (!strcmp (encoding, "x-wms-rtx"))
+ if (!strcmp (encoding, "X-WMS-RTX"))
return FALSE;
return TRUE;