diff options
author | Michael Smith <msmith@xiph.org> | 2005-09-01 11:16:15 +0000 |
---|---|---|
committer | Michael Smith <msmith@xiph.org> | 2005-09-01 11:16:15 +0000 |
commit | 0f5b17ead6448fd1d731cef1878e7046de5e8533 (patch) | |
tree | 905e1ba924f5c845ad80192cbdd0e32ae8dcbaff /gst/dvdlpcmdec | |
parent | e461b101d729539faae044e7535763d9f5b3cb19 (diff) |
Return the correct values from chain function
Original commit message from CVS:
Return the correct values from chain function
Diffstat (limited to 'gst/dvdlpcmdec')
-rw-r--r-- | gst/dvdlpcmdec/gstdvdlpcmdec.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/gst/dvdlpcmdec/gstdvdlpcmdec.c b/gst/dvdlpcmdec/gstdvdlpcmdec.c index dc5b29cc..cdc594ac 100644 --- a/gst/dvdlpcmdec/gstdvdlpcmdec.c +++ b/gst/dvdlpcmdec/gstdvdlpcmdec.c @@ -428,8 +428,7 @@ gst_dvdlpcmdec_chain_raw (GstPad * pad, GstBuffer * buf) update_timestamps (dvdlpcmdec, buf, samples); - gst_pad_push (dvdlpcmdec->srcpad, buf); - return GST_FLOW_OK; + return gst_pad_push (dvdlpcmdec->srcpad, buf); } case 20: { @@ -479,8 +478,7 @@ gst_dvdlpcmdec_chain_raw (GstPad * pad, GstBuffer * buf) } gst_buffer_unref (buf); - gst_pad_push (dvdlpcmdec->srcpad, outbuf); - return GST_FLOW_OK; + return gst_pad_push (dvdlpcmdec->srcpad, outbuf); } case 24: { @@ -517,12 +515,11 @@ gst_dvdlpcmdec_chain_raw (GstPad * pad, GstBuffer * buf) src += 12; } - gst_pad_push (dvdlpcmdec->srcpad, buf); - return GST_FLOW_OK; + return gst_pad_push (dvdlpcmdec->srcpad, buf); } default: GST_ELEMENT_ERROR (dvdlpcmdec, STREAM, WRONG_TYPE, (NULL), - ("Invalid sample width configured")); + ("Invalid sample width configured: %d", dvdlpcmdec->width)); gst_buffer_unref (buf); return GST_FLOW_ERROR; } |