audio: Don't answer BYTES queries
authorJan Schmidt <jan@centricular.com>
Tue, 15 Nov 2016 12:27:17 +0000 (23:27 +1100)
committerJan Schmidt <jan@centricular.com>
Tue, 15 Nov 2016 13:14:47 +0000 (00:14 +1100)
commit1840b0233a4b4686e7254e568c91c7f078a05f66
tree8c85560ea4dd333b93098257767c1d430516d705
parent6a4c14c39a9f20315d5bf7b6b4ea68e638f7d5ec
audio: Don't answer BYTES queries

Refuse to answer BYTES queries ourselves. The only
time they make sense is on raw elementary streams,
in which case upstream would already have answered.

They especially don't make sense for encoders to answer
based on upstream values - although perhaps later
we could make it do TIME->BYTES conversion on the source
pad based on bitrate.

https://bugzilla.gnome.org/show_bug.cgi?id=757631
gst-libs/gst/audio/gstaudiodecoder.c
gst-libs/gst/audio/gstaudioencoder.c