Mercurial > libavformat.hg
diff audio.c @ 2059:69ff78484350 libavformat
fix oss audio playback, broken since r7983, pass AVFormatContext filename to audio_open since audio_device when NULL is no more set to default value
| author | bcoudurier |
|---|---|
| date | Fri, 27 Apr 2007 16:10:05 +0000 |
| parents | 62792a60f740 |
| children | b21c2af60bc9 |
line wrap: on
line diff
--- a/audio.c Fri Apr 27 01:21:11 2007 +0000 +++ b/audio.c Fri Apr 27 16:10:05 2007 +0000 @@ -158,7 +158,7 @@ st = s1->streams[0]; s->sample_rate = st->codec->sample_rate; s->channels = st->codec->channels; - ret = audio_open(s, 1, NULL); + ret = audio_open(s, 1, s1->filename); if (ret < 0) { return AVERROR_IO; } else {
