mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 05:56:31 +00:00
ext/flac/gstflacdec.c: (gst_flacdec_write): Actually, GST_PAD_CAPS() has nothing to do with the logic.
Original commit message from CVS: * ext/flac/gstflacdec.c: (gst_flacdec_class_init), (gst_flacdec_write): Actually, GST_PAD_CAPS() has nothing to do with the logic.
This commit is contained in:
parent
d3ad860293
commit
692400ea40
2 changed files with 21 additions and 17 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-07-02 David Schleef <ds@schleef.org>
|
||||
|
||||
* ext/flac/gstflacdec.c: (gst_flacdec_class_init),
|
||||
(gst_flacdec_write): Actually, GST_PAD_CAPS() has nothing to
|
||||
do with the logic.
|
||||
|
||||
2004-07-02 David Schleef <ds@schleef.org>
|
||||
|
||||
* ext/flac/gstflacdec.c: (gst_flacdec_write): Set duration on
|
||||
|
|
|
@ -467,26 +467,24 @@ 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;
|
||||
}
|
||||
if (flacdec->seek_pending) {
|
||||
flacdec->total_samples = flacdec->seek_value;
|
||||
}
|
||||
|
||||
if (GST_PAD_IS_USABLE (flacdec->srcpad)) {
|
||||
GST_DEBUG ("send discont");
|
||||
if (GST_PAD_IS_USABLE (flacdec->srcpad)) {
|
||||
GST_DEBUG ("send discont");
|
||||
|
||||
format = GST_FORMAT_TIME;
|
||||
gst_pad_convert (flacdec->srcpad, GST_FORMAT_DEFAULT,
|
||||
flacdec->total_samples, &format, &time);
|
||||
format = GST_FORMAT_BYTES;
|
||||
gst_pad_convert (flacdec->srcpad, GST_FORMAT_DEFAULT,
|
||||
flacdec->total_samples, &format, &bytes);
|
||||
discont = gst_event_new_discontinuous (FALSE, GST_FORMAT_TIME, time,
|
||||
GST_FORMAT_BYTES, bytes,
|
||||
GST_FORMAT_DEFAULT, flacdec->total_samples, NULL);
|
||||
format = GST_FORMAT_TIME;
|
||||
gst_pad_convert (flacdec->srcpad, GST_FORMAT_DEFAULT,
|
||||
flacdec->total_samples, &format, &time);
|
||||
format = GST_FORMAT_BYTES;
|
||||
gst_pad_convert (flacdec->srcpad, GST_FORMAT_DEFAULT,
|
||||
flacdec->total_samples, &format, &bytes);
|
||||
discont = gst_event_new_discontinuous (FALSE, GST_FORMAT_TIME, time,
|
||||
GST_FORMAT_BYTES, bytes,
|
||||
GST_FORMAT_DEFAULT, flacdec->total_samples, NULL);
|
||||
|
||||
gst_pad_push (flacdec->srcpad, GST_DATA (discont));
|
||||
}
|
||||
gst_pad_push (flacdec->srcpad, GST_DATA (discont));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue