mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
oggmux: pick delta pad earlier during header parsing and based on video/non-video
Pick delta pad earlier during header parsing, and pick it based on whether it's a video stream or not rather than some rather byzantine signalling from theoraenc etc. which would set the delta flag on header packets which oggmux would then pick up and determine that this is a "delta-able" stream. Since the new videodecoder-based theoraenc didn't do that any more, we would only see the first delta flag on the second video packet, which is after we've already muxed a few audio packets flagged as key units, which trips up the unit test. Fixes pipelines/oggmux unit test. https://bugzilla.gnome.org/show_bug.cgi?id=679958
This commit is contained in:
parent
d1299d1357
commit
0dd2766d83
1 changed files with 5 additions and 0 deletions
|
@ -991,6 +991,11 @@ gst_ogg_mux_queue_pads (GstOggMux * ogg_mux, gboolean * popped)
|
||||||
gst_collect_pads_set_waiting (ogg_mux->collect,
|
gst_collect_pads_set_waiting (ogg_mux->collect,
|
||||||
(GstCollectData *) pad, FALSE);
|
(GstCollectData *) pad, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pad->map.is_video && ogg_mux->delta_pad == NULL) {
|
||||||
|
ogg_mux->delta_pad = pad;
|
||||||
|
GST_INFO_OBJECT (pad, "selected delta pad");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (caps)
|
if (caps)
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
|
Loading…
Reference in a new issue