diff options
author | Marton Balint <cus@passwd.hu> | 2017-12-30 01:29:52 +0300 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2018-01-29 01:06:43 +0300 |
commit | 4bb04098204afadc8604af0113294f8ecc63a2de (patch) | |
tree | d2dc31c31b76f9e61f503e465f4ab7bde9169f16 /libavdevice/libcdio.c | |
parent | 25a2d269bdd919e633e202b67927c3c72f9f0dd5 (diff) |
avdevice: migrate to AVFormatContext->url
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavdevice/libcdio.c')
-rw-r--r-- | libavdevice/libcdio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavdevice/libcdio.c b/libavdevice/libcdio.c index f6d4fce256..a4c9f52337 100644 --- a/libavdevice/libcdio.c +++ b/libavdevice/libcdio.c @@ -60,9 +60,9 @@ static av_cold int read_header(AVFormatContext *ctx) if (!(st = avformat_new_stream(ctx, NULL))) return AVERROR(ENOMEM); - s->drive = cdio_cddap_identify(ctx->filename, CDDA_MESSAGE_LOGIT, &err); + s->drive = cdio_cddap_identify(ctx->url, CDDA_MESSAGE_LOGIT, &err); if (!s->drive) { - av_log(ctx, AV_LOG_ERROR, "Could not open drive %s.\n", ctx->filename); + av_log(ctx, AV_LOG_ERROR, "Could not open drive %s.\n", ctx->url); return AVERROR(EINVAL); } if (err) { @@ -70,7 +70,7 @@ static av_cold int read_header(AVFormatContext *ctx) free(err); } if ((ret = cdio_cddap_open(s->drive)) < 0 || !s->drive->opened) { - av_log(ctx, AV_LOG_ERROR, "Could not open disk in drive %s.\n", ctx->filename); + av_log(ctx, AV_LOG_ERROR, "Could not open disk in drive %s.\n", ctx->url); return AVERROR(EINVAL); } |