From 92eb19b993e4e1bdd7fef71c1264e0092f4accac Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Thu, 29 Jan 2004 23:20:45 +0000 Subject: GST_ELEMENT_ERROR Original commit message from CVS: GST_ELEMENT_ERROR --- ext/mpeg2enc/gstmpeg2enc.cc | 4 ++-- ext/mpeg2enc/gstmpeg2encpicturereader.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/mpeg2enc') diff --git a/ext/mpeg2enc/gstmpeg2enc.cc b/ext/mpeg2enc/gstmpeg2enc.cc index 952affaa..5bf0ba15 100644 --- a/ext/mpeg2enc/gstmpeg2enc.cc +++ b/ext/mpeg2enc/gstmpeg2enc.cc @@ -239,7 +239,7 @@ gst_mpeg2enc_loop (GstElement *element) gst_pad_set_element_private (enc->sinkpad, data); if (!(caps = GST_PAD_CAPS (enc->sinkpad))) { - gst_element_error (element, CORE, NEGOTIATION, (""), + GST_ELEMENT_ERROR (element, CORE, NEGOTIATION, (""), ("format wasn't negotiated before loop function")); return; } @@ -251,7 +251,7 @@ gst_mpeg2enc_loop (GstElement *element) /* and set caps on other side */ othercaps = enc->encoder->getFormat (); if (gst_pad_set_explicit_caps (enc->srcpad, othercaps) <= 0) { - gst_element_error (element, CORE, NEGOTIATION, (""), ("")); + GST_ELEMENT_ERROR (element, CORE, NEGOTIATION, (""), ("")); delete enc->encoder; enc->encoder = NULL; return; diff --git a/ext/mpeg2enc/gstmpeg2encpicturereader.cc b/ext/mpeg2enc/gstmpeg2encpicturereader.cc index 0d9ae80b..439f4f10 100644 --- a/ext/mpeg2enc/gstmpeg2encpicturereader.cc +++ b/ext/mpeg2enc/gstmpeg2encpicturereader.cc @@ -98,7 +98,7 @@ GstMpeg2EncPictureReader::LoadFrame () if ((data = (GstData *) gst_pad_get_element_private (pad))) { gst_pad_set_element_private (pad, NULL); } else if (!(data = gst_pad_pull (pad))) { - gst_element_error (gst_pad_get_parent (pad), RESOURCE, READ, + GST_ELEMENT_ERROR (gst_pad_get_parent (pad), RESOURCE, READ, (NULL), (NULL)); return true; } -- cgit v1.2.1