mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
don't push if can't push
Original commit message from CVS: don't push if can't push
This commit is contained in:
parent
9c07101831
commit
0cf5963cff
1 changed files with 4 additions and 2 deletions
|
@ -197,6 +197,7 @@ gst_wavparse_chain (GstPad *pad, GstBuffer *buf)
|
||||||
GST_BUFFER_TIMESTAMP (buf) = wavparse->offset * GST_SECOND / wavparse->rate;
|
GST_BUFFER_TIMESTAMP (buf) = wavparse->offset * GST_SECOND / wavparse->rate;
|
||||||
wavparse->offset += GST_BUFFER_SIZE (buf) * 8 / wavparse->width / wavparse->channels;
|
wavparse->offset += GST_BUFFER_SIZE (buf) * 8 / wavparse->width / wavparse->channels;
|
||||||
|
|
||||||
|
if (GST_PAD_IS_USABLE (wavparse->srcpad))
|
||||||
gst_pad_push (wavparse->srcpad, buf);
|
gst_pad_push (wavparse->srcpad, buf);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -335,6 +336,7 @@ gst_wavparse_chain (GstPad *pad, GstBuffer *buf)
|
||||||
|
|
||||||
gst_buffer_unref (buf);
|
gst_buffer_unref (buf);
|
||||||
|
|
||||||
|
if (GST_PAD_IS_USABLE (wavparse->srcpad))
|
||||||
gst_pad_push (wavparse->srcpad, newbuf);
|
gst_pad_push (wavparse->srcpad, newbuf);
|
||||||
|
|
||||||
/* now we're ready to go, the next buffer should start data */
|
/* now we're ready to go, the next buffer should start data */
|
||||||
|
|
Loading…
Reference in a new issue