mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
ffmpeg: AVERROR_* => AVERROR(*)
This commit is contained in:
parent
2f81d0d63b
commit
dfd26c36f3
2 changed files with 7 additions and 7 deletions
|
@ -150,22 +150,22 @@ gst_ffmpegdemux_averror (gint av_errno)
|
|||
const gchar *message = NULL;
|
||||
|
||||
switch (av_errno) {
|
||||
case AVERROR_UNKNOWN:
|
||||
case AVERROR (EINVAL):
|
||||
message = "Unknown error";
|
||||
break;
|
||||
case AVERROR_IO:
|
||||
case AVERROR (EIO):
|
||||
message = "Input/output error";
|
||||
break;
|
||||
case AVERROR_NUMEXPECTED:
|
||||
case AVERROR (EDOM):
|
||||
message = "Number syntax expected in filename";
|
||||
break;
|
||||
case AVERROR_NOMEM:
|
||||
case AVERROR (ENOMEM):
|
||||
message = "Not enough memory";
|
||||
break;
|
||||
case AVERROR_NOFMT:
|
||||
case AVERROR (EILSEQ):
|
||||
message = "Unknown format";
|
||||
break;
|
||||
case AVERROR_NOTSUPP:
|
||||
case AVERROR (ENOSYS):
|
||||
message = "Operation not supported";
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -101,7 +101,7 @@ gst_ffmpegdata_peek (URLContext * h, unsigned char *buf, int size)
|
|||
GstFlowReturn ret;
|
||||
int total = 0;
|
||||
|
||||
g_return_val_if_fail (h->flags == URL_RDONLY, AVERROR_IO);
|
||||
g_return_val_if_fail (h->flags == URL_RDONLY, AVERROR (EIO));
|
||||
info = (GstProtocolInfo *) h->priv_data;
|
||||
|
||||
GST_DEBUG ("Pulling %d bytes at position %" G_GUINT64_FORMAT, size,
|
||||
|
|
Loading…
Reference in a new issue