oggmux: The best pad can't be EOS

The problem experienced is that the EOS was never emitted by oggmux during a
rendering with GES. The proposed patch checks if the pad is EOS before deciding
it's the "best pad".

https://bugzilla.gnome.org/show_bug.cgi?id=699792
This commit is contained in:
Mathieu Duponchelle 2013-05-06 22:05:04 +02:00 committed by Sebastian Dröge
parent 3ad2dec005
commit 4c362768fc

View file

@ -1043,8 +1043,8 @@ gst_ogg_mux_queue_pads (GstOggMux * ogg_mux, gboolean * popped)
}
/* we should have a buffer now, see if it is the best pad to
* pull on */
if (pad->buffer) {
* pull on. Our best pad can't be eos */
if (pad->buffer && !pad->eos) {
if (gst_ogg_mux_compare_pads (ogg_mux, bestpad, pad) > 0) {
GST_LOG_OBJECT (data->pad,
"new best pad, with buffer %" GST_PTR_FORMAT, pad->buffer);