From da5b8a9ea501974bc58c513335bf149eea585bcd Mon Sep 17 00:00:00 2001 From: James Stembridge Date: Tue, 27 May 2003 15:20:01 +0000 Subject: only send audio/video headers if there is an audio/video stream CVS patchset: 4963 CVS date: 2003/05/27 15:20:01 --- src/demuxers/demux_asf.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/demuxers/demux_asf.c b/src/demuxers/demux_asf.c index 39796a3a3..f1b1428ea 100644 --- a/src/demuxers/demux_asf.c +++ b/src/demuxers/demux_asf.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: demux_asf.c,v 1.117 2003/05/26 17:00:12 tchamp Exp $ + * $Id: demux_asf.c,v 1.118 2003/05/27 15:20:01 jstembridge Exp $ * * demultiplexer for asf streams * @@ -1686,8 +1686,10 @@ static void demux_asf_send_headers (demux_plugin_t *this_gen) { printf("demux_asf: video stream_id: %d, audio stream_id: %d\n", this->video_stream_id, this->audio_stream_id); - asf_send_audio_header(this, this->audio_stream); - asf_send_video_header(this, this->video_stream); + if(this->stream->stream_info[XINE_STREAM_INFO_HAS_AUDIO]) + asf_send_audio_header(this, this->audio_stream); + if(this->stream->stream_info[XINE_STREAM_INFO_HAS_VIDEO]) + asf_send_video_header(this, this->video_stream); #ifdef LOG printf ("demux_asf: send header done\n"); #endif -- cgit v1.2.3