mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-05 06:58:49 +00:00
fix flacdec when src not connected
Original commit message from CVS: fix flacdec when src not connected
This commit is contained in:
parent
055ee4d5cc
commit
7519af569b
1 changed files with 15 additions and 17 deletions
|
@ -429,8 +429,6 @@ gst_flacdec_write (const FLAC__SeekableStreamDecoder *decoder,
|
||||||
|
|
||||||
flacdec->need_discont = FALSE;
|
flacdec->need_discont = FALSE;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (!GST_PAD_CAPS (flacdec->srcpad)) {
|
if (!GST_PAD_CAPS (flacdec->srcpad)) {
|
||||||
if (flacdec->seek_pending) {
|
if (flacdec->seek_pending) {
|
||||||
flacdec->total_samples = flacdec->seek_value;
|
flacdec->total_samples = flacdec->seek_value;
|
||||||
|
@ -453,6 +451,7 @@ gst_flacdec_write (const FLAC__SeekableStreamDecoder *decoder,
|
||||||
gst_pad_push (flacdec->srcpad, GST_BUFFER (discont));
|
gst_pad_push (flacdec->srcpad, GST_BUFFER (discont));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!GST_PAD_CAPS (flacdec->srcpad)) {
|
if (!GST_PAD_CAPS (flacdec->srcpad)) {
|
||||||
gst_pad_try_set_caps (flacdec->srcpad,
|
gst_pad_try_set_caps (flacdec->srcpad,
|
||||||
|
@ -771,4 +770,3 @@ gst_flacdec_get_property (GObject *object, guint prop_id,
|
||||||
g_warning ("Unknown property id\n");
|
g_warning ("Unknown property id\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue