mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +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;
|
||||
|
||||
|
||||
|
||||
if (!GST_PAD_CAPS (flacdec->srcpad)) {
|
||||
if (flacdec->seek_pending) {
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!GST_PAD_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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue