summaryrefslogtreecommitdiffstats
path: root/ext/sndfile
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sndfile')
-rw-r--r--ext/sndfile/gstsf.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/sndfile/gstsf.c b/ext/sndfile/gstsf.c
index 18100d8c..c7bc2c12 100644
--- a/ext/sndfile/gstsf.c
+++ b/ext/sndfile/gstsf.c
@@ -559,7 +559,7 @@ gst_sf_open_file (GstSF *this)
this->time = 0;
if (!this->filename) {
- gst_element_error (this, RESOURCE, NOT_FOUND,
+ GST_ELEMENT_ERROR (this, RESOURCE, NOT_FOUND,
(_("No filename specified")),
NULL);
return FALSE;
@@ -587,7 +587,7 @@ gst_sf_open_file (GstSF *this)
this->filename, info.samplerate, info.channels, info.format);
if (!sf_format_check (&info)) {
- gst_element_error (this, STREAM, ENCODE, NULL,
+ GST_ELEMENT_ERROR (this, STREAM, ENCODE, NULL,
("Input parameters (rate:%d, channels:%d, format:0x%x) invalid",
info.samplerate, info.channels, info.format));
return FALSE;
@@ -597,7 +597,7 @@ gst_sf_open_file (GstSF *this)
this->file = sf_open (this->filename, mode, &info);
if (!this->file) {
- gst_element_error (this, RESOURCE, OPEN_WRITE,
+ GST_ELEMENT_ERROR (this, RESOURCE, OPEN_WRITE,
(_("Could not open file \"%s\" for writing"), this->filename),
("soundfile error: %s", sf_strerror (NULL)));
return FALSE;
@@ -636,7 +636,7 @@ gst_sf_close_file (GstSF *this)
INFO_OBJ (this, "Closing file %s", this->filename);
if ((err = sf_close (this->file)))
- gst_element_error (this, RESOURCE, CLOSE,
+ GST_ELEMENT_ERROR (this, RESOURCE, CLOSE,
("Could not close file file \"%s\"", this->filename),
("soundfile error: %s", strerror (err)));
else
@@ -657,7 +657,7 @@ gst_sf_loop (GstElement *element)
this = (GstSF*)element;
if (this->channels == NULL) {
- gst_element_error (element, CORE, PAD, NULL, ("You must connect at least one pad to sndfile elements."));
+ GST_ELEMENT_ERROR (element, CORE, PAD, NULL, ("You must connect at least one pad to sndfile elements."));
return;
}
@@ -707,7 +707,7 @@ gst_sf_loop (GstElement *element)
"buffer-frames", G_TYPE_INT, this->buffer_frames,
NULL);
if (!gst_pad_try_set_caps (GST_SF_CHANNEL (l)->pad, caps)) {
- gst_element_error (this, CORE, NEGOTIATION, NULL,
+ GST_ELEMENT_ERROR (this, CORE, NEGOTIATION, NULL,
("Opened file with sample rate %d, but could not set caps", this->rate));
gst_sf_close_file (this);
return;
@@ -763,7 +763,7 @@ gst_sf_loop (GstElement *element)
which then would set this->buffer_frames to a new value */
buffer_frames = this->buffer_frames;
if (buffer_frames == 0) {
- gst_element_error (element, CORE, NEGOTIATION, NULL,
+ GST_ELEMENT_ERROR (element, CORE, NEGOTIATION, NULL,
("format wasn't negotiated before chain function"));
return;
}
@@ -789,7 +789,7 @@ gst_sf_loop (GstElement *element)
if (num_to_write) {
written = sf_writef_float (this->file, buf, num_to_write);
if (written != num_to_write)
- gst_element_error (element, RESOURCE, WRITE,
+ GST_ELEMENT_ERROR (element, RESOURCE, WRITE,
(_("Could not write to file \"%s\""), this->filename),
("soundfile error: %s", sf_strerror (this->file)));
}