comparison libmpdemux/network.c @ 3732:837ed2f1ed5e

possible uninit pointer free()'d possible bad pointer
author pl
date Tue, 25 Dec 2001 16:35:57 +0000
parents bed6226ffb46
children 879a668ee540
comparison
equal deleted inserted replaced
3731:10130917f37b 3732:837ed2f1ed5e
449 printf("Server return %d: %s\n", http_hdr->status_code, http_hdr->reason_phrase ); 449 printf("Server return %d: %s\n", http_hdr->status_code, http_hdr->reason_phrase );
450 close( fd ); 450 close( fd );
451 fd = -1; 451 fd = -1;
452 } 452 }
453 stream->fd = fd; 453 stream->fd = fd;
454 } 454 http_free( http_hdr );
455 455 }
456 http_free( http_hdr );
457 456
458 stream->streaming_ctrl->streaming_read = nop_streaming_read; 457 stream->streaming_ctrl->streaming_read = nop_streaming_read;
459 stream->streaming_ctrl->streaming_seek = nop_streaming_seek; 458 stream->streaming_ctrl->streaming_seek = nop_streaming_seek;
460 stream->streaming_ctrl->prebuffer_size = 180000; 459 stream->streaming_ctrl->prebuffer_size = 180000;
461 // stream->streaming_ctrl->prebuffer_size = 0; 460 // stream->streaming_ctrl->prebuffer_size = 0;
541 int 540 int
542 rtp_streaming_start( stream_t *stream ) { 541 rtp_streaming_start( stream_t *stream ) {
543 streaming_ctrl_t *streaming_ctrl; 542 streaming_ctrl_t *streaming_ctrl;
544 int fd; 543 int fd;
545 544
546 if( streaming_ctrl==NULL ) return -1; 545 if( stream==NULL ) return -1;
547 streaming_ctrl = stream->streaming_ctrl; 546 streaming_ctrl = stream->streaming_ctrl;
548 fd = stream->fd; 547 fd = stream->fd;
549 548
550 if( fd<0 ) { 549 if( fd<0 ) {
551 fd = rtp_open_socket( (streaming_ctrl->url) ); 550 fd = rtp_open_socket( (streaming_ctrl->url) );