summaryrefslogtreecommitdiff
path: root/gst/asfmux/gstrtpasfpay.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2011-04-14 18:36:16 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2011-04-15 00:24:47 +0100
commit6f045cb4d851cbe2292c44dc51a1b54b26288cee (patch)
tree74d5fdeed8baf97e9759b68d7871f05c5a26046f /gst/asfmux/gstrtpasfpay.c
parent276a1390c5072847831f4d84a0c8dd1b4019cbc9 (diff)
downloadgstreamer-plugins-bad-6f045cb4d851cbe2292c44dc51a1b54b26288cee.tar.gz
asfmux: fix unused-but-set-variable warnings with gcc 4.6
Diffstat (limited to 'gst/asfmux/gstrtpasfpay.c')
-rw-r--r--gst/asfmux/gstrtpasfpay.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gst/asfmux/gstrtpasfpay.c b/gst/asfmux/gstrtpasfpay.c
index 1e616546e..157533f92 100644
--- a/gst/asfmux/gstrtpasfpay.c
+++ b/gst/asfmux/gstrtpasfpay.c
@@ -312,7 +312,6 @@ gst_rtp_asf_pay_handle_packet (GstRtpAsfPay * rtpasfpay, GstBuffer * buffer)
static GstFlowReturn
gst_rtp_asf_pay_parse_headers (GstRtpAsfPay * rtpasfpay)
{
- GstFlowReturn ret = GST_FLOW_OK;
gchar *maxps;
g_return_val_if_fail (rtpasfpay->headers, GST_FLOW_ERROR);
@@ -346,9 +345,11 @@ gst_rtp_asf_pay_parse_headers (GstRtpAsfPay * rtpasfpay)
return GST_FLOW_OK;
error:
- ret = GST_FLOW_ERROR;
- GST_ERROR_OBJECT (rtpasfpay, "Error while parsing headers");
- return GST_FLOW_ERROR;
+ {
+ GST_ELEMENT_ERROR (rtpasfpay, STREAM, DECODE, (NULL),
+ ("Error parsing headers"));
+ return GST_FLOW_ERROR;
+ }
}
static GstFlowReturn