ffmpeg: AVERROR_* => AVERROR(*)

This commit is contained in:
Edward Hervey 2011-04-19 19:30:23 +02:00
parent 2f81d0d63b
commit dfd26c36f3
2 changed files with 7 additions and 7 deletions

View file

@ -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:

View file

@ -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,