diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2004-01-29 23:20:45 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2004-01-29 23:20:45 +0000 |
commit | 92eb19b993e4e1bdd7fef71c1264e0092f4accac (patch) | |
tree | 7055360715831c903e6ae5ca7df13bcf3093be4c /ext/audiofile | |
parent | 7c858cbf0f10a48386f7098420fde939eda25eb5 (diff) | |
download | gst-plugins-bad-92eb19b993e4e1bdd7fef71c1264e0092f4accac.tar.gz gst-plugins-bad-92eb19b993e4e1bdd7fef71c1264e0092f4accac.tar.bz2 gst-plugins-bad-92eb19b993e4e1bdd7fef71c1264e0092f4accac.zip |
GST_ELEMENT_ERROR
Original commit message from CVS:
GST_ELEMENT_ERROR
Diffstat (limited to 'ext/audiofile')
-rw-r--r-- | ext/audiofile/gstafsink.c | 4 | ||||
-rw-r--r-- | ext/audiofile/gstafsrc.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/audiofile/gstafsink.c b/ext/audiofile/gstafsink.c index 9cd134e5..afef5f69 100644 --- a/ext/audiofile/gstafsink.c +++ b/ext/audiofile/gstafsink.c @@ -346,7 +346,7 @@ gst_afsink_open_file (GstAFSink *sink) sink->file = afOpenFile (sink->filename, "w", outfilesetup); if (sink->file == AF_NULL_FILEHANDLE) { - gst_element_error (sink, RESOURCE, OPEN_WRITE, + GST_ELEMENT_ERROR (sink, RESOURCE, OPEN_WRITE, (_("Could not open file \"%s\" for writing"), sink->filename), ("system error: %s", strerror (errno))); return FALSE; @@ -369,7 +369,7 @@ gst_afsink_close_file (GstAFSink *sink) /* if (fclose (sink->file) != 0) */ if (afCloseFile (sink->file) != 0) { - gst_element_error (sink, RESOURCE, CLOSE, + GST_ELEMENT_ERROR (sink, RESOURCE, CLOSE, (_("Error closing file \"%s\""), sink->filename), GST_ERROR_SYSTEM); } diff --git a/ext/audiofile/gstafsrc.c b/ext/audiofile/gstafsrc.c index bffff45a..e2bdf3f6 100644 --- a/ext/audiofile/gstafsrc.c +++ b/ext/audiofile/gstafsrc.c @@ -316,7 +316,7 @@ gst_afsrc_open_file (GstAFSrc *src) src->file = afOpenFile (src->filename, "r", AF_NULL_FILESETUP); if (src->file == AF_NULL_FILEHANDLE) { - gst_element_error (src, RESOURCE, OPEN_READ, + GST_ELEMENT_ERROR (src, RESOURCE, OPEN_READ, (_("Could not open file \"%s\" for reading"), src->filename), ("system error: %s", strerror (errno))); return FALSE; @@ -374,7 +374,7 @@ gst_afsrc_close_file (GstAFSrc *src) /* if (fclose (src->file) != 0) */ if (afCloseFile (src->file) != 0) { - gst_element_error (src, RESOURCE, CLOSE, + GST_ELEMENT_ERROR (src, RESOURCE, CLOSE, (_("Error closing file \"%s\""), src->filename), GST_ERROR_SYSTEM); } else { |