diff options
author | Clément Bœsch <ubitux@gmail.com> | 2011-11-05 13:11:18 +0100 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2011-11-05 15:07:19 +0100 |
commit | 0e5ecd806eadf7dd0ec645b1b69310ee76c0cd1c (patch) | |
tree | aa4774ed8070f10d86a16ec814cd39deda0ad8a1 /libavdevice/dshow.c | |
parent | 454f1657288e75a9797381c8a26598674ea9bd68 (diff) | |
download | ffmpeg-0e5ecd806eadf7dd0ec645b1b69310ee76c0cd1c.tar.gz |
Replace remaining av_new_stream() with avformat_new_stream().
Diffstat (limited to 'libavdevice/dshow.c')
-rw-r--r-- | libavdevice/dshow.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c index 6a77f4b43a..ab5f7e97e0 100644 --- a/libavdevice/dshow.c +++ b/libavdevice/dshow.c @@ -659,11 +659,12 @@ dshow_add_device(AVFormatContext *avctx, AVFormatParameters *ap, AVStream *st; int ret = AVERROR(EIO); - st = av_new_stream(avctx, devtype); + st = avformat_new_stream(avctx, NULL); if (!st) { ret = AVERROR(ENOMEM); goto error; } + st->id = devtype; ctx->capture_filter[devtype]->stream_index = st->index; |