diff options
Diffstat (limited to 'gst-libs/gst')
-rw-r--r-- | gst-libs/gst/riff/riff-read.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gst-libs/gst/riff/riff-read.c b/gst-libs/gst/riff/riff-read.c index 870f7782..4948db38 100644 --- a/gst-libs/gst/riff/riff-read.c +++ b/gst-libs/gst/riff/riff-read.c @@ -168,7 +168,7 @@ gst_riff_peek_head (GstRiffRead *riff, gst_pad_event_default (riff->sinkpad, event); } else { gst_event_unref (event); - gst_element_error (riff, RESOURCE, READ, NULL, NULL); + GST_ELEMENT_ERROR (riff, RESOURCE, READ, NULL, NULL); } return FALSE; } @@ -197,7 +197,7 @@ gst_riff_read_element_data (GstRiffRead *riff, GstBuffer *buf = NULL; if (gst_bytestream_peek (riff->bs, &buf, length) != length) { - gst_element_error (riff, RESOURCE, READ, NULL, NULL); + GST_ELEMENT_ERROR (riff, RESOURCE, READ, NULL, NULL); if (buf) gst_buffer_unref (buf); return NULL; @@ -240,7 +240,7 @@ gst_riff_read_seek (GstRiffRead *riff, /* now seek */ if (!gst_bytestream_seek (riff->bs, offset, GST_SEEK_METHOD_SET)) { - gst_element_error (riff, RESOURCE, SEEK, NULL, NULL); + GST_ELEMENT_ERROR (riff, RESOURCE, SEEK, NULL, NULL); return NULL; } @@ -252,7 +252,7 @@ gst_riff_read_seek (GstRiffRead *riff, /* get the discont event and return */ gst_bytestream_get_status (riff->bs, &remaining, &event); if (!event || GST_EVENT_TYPE (event) != GST_EVENT_DISCONTINUOUS) { - gst_element_error (riff, CORE, EVENT, NULL, + GST_ELEMENT_ERROR (riff, CORE, EVENT, NULL, ("No discontinuity event after seek")); if (event) gst_event_unref (event); @@ -296,7 +296,7 @@ gst_riff_peek_list (GstRiffRead *riff) } if (gst_bytestream_peek_bytes (riff->bs, &data, 12) != 12) { - gst_element_error (riff, RESOURCE, READ, NULL, NULL); + GST_ELEMENT_ERROR (riff, RESOURCE, READ, NULL, NULL); return 0; } @@ -656,7 +656,7 @@ gst_riff_read_list (GstRiffRead *riff, } gst_bytestream_flush_fast (riff->bs, 8); if (gst_bytestream_peek_bytes (riff->bs, &data, 4) != 4) { - gst_element_error (riff, RESOURCE, READ, NULL, NULL); + GST_ELEMENT_ERROR (riff, RESOURCE, READ, NULL, NULL); return FALSE; } gst_bytestream_flush_fast (riff->bs, 4); @@ -844,14 +844,14 @@ gst_riff_read_header (GstRiffRead *riff, if (!gst_riff_peek_head (riff, &tag, &length, NULL)) return FALSE; if (tag != GST_RIFF_TAG_RIFF) { - gst_element_error (riff, STREAM, WRONG_TYPE, NULL, NULL); + GST_ELEMENT_ERROR (riff, STREAM, WRONG_TYPE, NULL, NULL); return FALSE; } gst_bytestream_flush_fast (riff->bs, 8); /* doctype */ if (gst_bytestream_peek_bytes (riff->bs, &data, 4) != 4) { - gst_element_error (riff, RESOURCE, READ, NULL, NULL); + GST_ELEMENT_ERROR (riff, RESOURCE, READ, NULL, NULL); return FALSE; } gst_bytestream_flush_fast (riff->bs, 4); |