matroskamux: For audio tracks, take the default duration from the first buffer
authorSebastian Dröge <sebastian@centricular.com>
Tue, 18 Jul 2017 07:41:40 +0000 (10:41 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 25 Jul 2017 08:28:46 +0000 (11:28 +0300)
commit317d3380bbee24763dfeec4bbb9d1c733e519aff
tree80651bcfc9424f273bf3b977e58c8a359346e29c
parent5a6fe4ed29737aa9d9c3c18fb35d0058468c5c1d
matroskamux: For audio tracks, take the default duration from the first buffer

... if we don't have any better idea from the caps. This allows writing
SimpleBlocks for a majority of audio streams where the duration of
frames is usually fixed. And as a side effect, allows VLC to play
streams with Opus as it only works with SimpleBlocks currently:
  https://trac.videolan.org/vlc/ticket/18545

https://bugzilla.gnome.org/show_bug.cgi?id=784969
gst/matroska/matroska-mux.c