comparison rtsp.c @ 511:056991ab9f10 libavformat

HTTP Authentication Patch by (Petr Doubek <doubek at vision dot ee dot ethz dot ch>) tested and submitted by (Torsten Spindler <spindler at hbt dot arch dot ethz dot ch>)
author michael
date Thu, 12 Aug 2004 00:09:32 +0000
parents 1cf22651d33b
children 89bd76208427
comparison
equal deleted inserted replaced
510:133287132e1d 511:056991ab9f10
337 /* get the control url */ 337 /* get the control url */
338 st = s->streams[s->nb_streams - 1]; 338 st = s->streams[s->nb_streams - 1];
339 rtsp_st = st->priv_data; 339 rtsp_st = st->priv_data;
340 340
341 /* XXX: may need to add full url resolution */ 341 /* XXX: may need to add full url resolution */
342 url_split(proto, sizeof(proto), NULL, 0, NULL, NULL, 0, p); 342 url_split(proto, sizeof(proto), NULL, 0, NULL, 0, NULL, NULL, 0, p);
343 if (proto[0] == '\0') { 343 if (proto[0] == '\0') {
344 /* relative control URL */ 344 /* relative control URL */
345 pstrcat(rtsp_st->control_url, sizeof(rtsp_st->control_url), "/"); 345 pstrcat(rtsp_st->control_url, sizeof(rtsp_st->control_url), "/");
346 pstrcat(rtsp_st->control_url, sizeof(rtsp_st->control_url), p); 346 pstrcat(rtsp_st->control_url, sizeof(rtsp_st->control_url), p);
347 } else { 347 } else {
721 RTSPStream *rtsp_st; 721 RTSPStream *rtsp_st;
722 int protocol_mask; 722 int protocol_mask;
723 AVStream *st; 723 AVStream *st;
724 724
725 /* extract hostname and port */ 725 /* extract hostname and port */
726 url_split(NULL, 0, 726 url_split(NULL, 0, NULL, 0,
727 host, sizeof(host), &port, path, sizeof(path), s->filename); 727 host, sizeof(host), &port, path, sizeof(path), s->filename);
728 if (port < 0) 728 if (port < 0)
729 port = RTSP_DEFAULT_PORT; 729 port = RTSP_DEFAULT_PORT;
730 730
731 /* open the tcp connexion */ 731 /* open the tcp connexion */