fix flacdec when src not connected

Original commit message from CVS:
fix flacdec when src not connected
This commit is contained in:
Thomas Vander Stichele 2003-06-28 14:24:04 +00:00
parent 055ee4d5cc
commit 7519af569b

View file

@ -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");
}
}