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; const gchar *message = NULL;
switch (av_errno) { switch (av_errno) {
case AVERROR_UNKNOWN: case AVERROR (EINVAL):
message = "Unknown error"; message = "Unknown error";
break; break;
case AVERROR_IO: case AVERROR (EIO):
message = "Input/output error"; message = "Input/output error";
break; break;
case AVERROR_NUMEXPECTED: case AVERROR (EDOM):
message = "Number syntax expected in filename"; message = "Number syntax expected in filename";
break; break;
case AVERROR_NOMEM: case AVERROR (ENOMEM):
message = "Not enough memory"; message = "Not enough memory";
break; break;
case AVERROR_NOFMT: case AVERROR (EILSEQ):
message = "Unknown format"; message = "Unknown format";
break; break;
case AVERROR_NOTSUPP: case AVERROR (ENOSYS):
message = "Operation not supported"; message = "Operation not supported";
break; break;
default: default:

View file

@ -101,7 +101,7 @@ gst_ffmpegdata_peek (URLContext * h, unsigned char *buf, int size)
GstFlowReturn ret; GstFlowReturn ret;
int total = 0; 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; info = (GstProtocolInfo *) h->priv_data;
GST_DEBUG ("Pulling %d bytes at position %" G_GUINT64_FORMAT, size, GST_DEBUG ("Pulling %d bytes at position %" G_GUINT64_FORMAT, size,