diff options
author | James Stembridge <jstembridge@users.sourceforge.net> | 2003-05-27 15:20:01 +0000 |
---|---|---|
committer | James Stembridge <jstembridge@users.sourceforge.net> | 2003-05-27 15:20:01 +0000 |
commit | da5b8a9ea501974bc58c513335bf149eea585bcd (patch) | |
tree | 67499ed2f0fd0ecfa67ab3c0ae4c8997026f8cb1 | |
parent | acb3609a9d5dfc7fcdc875c13804efb8ca252406 (diff) | |
download | xine-lib-da5b8a9ea501974bc58c513335bf149eea585bcd.tar.gz xine-lib-da5b8a9ea501974bc58c513335bf149eea585bcd.tar.bz2 |
only send audio/video headers if there is an audio/video stream
CVS patchset: 4963
CVS date: 2003/05/27 15:20:01
-rw-r--r-- | src/demuxers/demux_asf.c | 8 |
1 files 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 |