After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 757948 - audio: Do not fail filling info from caps missing channel-mask
audio: Do not fail filling info from caps missing channel-mask
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
unspecified
Other All
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-11-11 14:13 UTC by Thibault Saunier
Modified: 2018-11-03 11:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
audio: Do not fail filling info from caps missing channel-mask (1.97 KB, patch)
2015-11-11 14:13 UTC, Thibault Saunier
none Details | Review

Description Thibault Saunier 2015-11-11 14:13:42 UTC
See commit message
Comment 1 Thibault Saunier 2015-11-11 14:13:46 UTC
Created attachment 315266 [details] [review]
audio: Do not fail filling info from caps missing channel-mask

Use the new gst_audio_channel_get_fallback_mask to get some sane
values
Comment 2 Sebastian Dröge (slomo) 2015-11-11 14:27:26 UTC
I don't really like this :) We should never produce caps with invalid channel-mask, if anything whatever has produced the caps should've used the fallback channel-mask (or 0).
Comment 3 Thibault Saunier 2015-11-11 14:39:42 UTC
True but I have a mkv stream with raw audio that just don't contain the info, we should deal with it fmpov.
Comment 4 Thibault Saunier 2015-11-11 14:40:14 UTC
(and we should also fix matroskamux or whatever to avoid that to happen in the future! :)
Comment 5 Thibault Saunier 2015-11-11 14:42:22 UTC
Ah, or you mean matroska demux should use that method and set the channel-mask itself?
Comment 6 Sebastian Dröge (slomo) 2015-11-11 14:52:17 UTC
Yes, and we should fix matroskamux (but IIRC the channel layout/position stuff in Matroska was a bit overengineered... based on giving each channel a position in a 3 dimensional coordinate system)
Comment 7 Nicolas Dufresne (ndufresne) 2015-11-11 16:19:30 UTC
We should have a utility to craft a channels mask (the most common) for each number of channels. This currently exist in alsasink, and is probably found at other places. It's a lie, but it's better then failing.
Comment 8 Sebastian Dröge (slomo) 2015-11-11 16:23:59 UTC
That's exactly what gst_audio_channel_get_fallback_mask() does, yes.
Comment 9 Tim-Philipp Müller 2016-12-25 12:22:06 UTC
So what shall we do with this then?

As I understand it, the choice here is between:

 - require caps producers to use _get_fallback_mask() (now)

 - make parse_info_from_caps() use _get_fallback_mask() (this patch)

I'm leaning slightly towards forcing producers to do this, so matroskademux in this case. That way when we make up stuff it has to be done explicitly in the element in question and is less likely to be overlooked.
Comment 10 GStreamer system administrator 2018-11-03 11:43:46 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/243.