mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
qtmux: Only create new chunks if we have more than a single stream
There's no point in creating multiple chunks otherwise, it only wastes some bytes for storing the chunk offsets.
This commit is contained in:
parent
7bdcd57980
commit
6cb8c802f4
1 changed files with 5 additions and 1 deletions
|
@ -3553,7 +3553,11 @@ find_best_pad (GstQTMux * qtmux, GstCollectPads * pads)
|
|||
GST_DEBUG_OBJECT (qtmux, "Reusing pad %s:%s",
|
||||
GST_DEBUG_PAD_NAME (best_pad->collect.pad));
|
||||
}
|
||||
} else {
|
||||
} else if (qtmux->collect->data->next) {
|
||||
/* Only switch pads if we have more than one, otherwise
|
||||
* we can just put everything into a single chunk and save
|
||||
* a few bytes of offsets
|
||||
*/
|
||||
if (qtmux->current_pad)
|
||||
GST_DEBUG_OBJECT (qtmux, "Switching from pad %s:%s",
|
||||
GST_DEBUG_PAD_NAME (qtmux->current_pad->collect.pad));
|
||||
|
|
Loading…
Reference in a new issue