mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +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;
|
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:
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue