Commit a1e59086 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller
Browse files

gst-libs/gst/audio/multichannel.c: Give more useful warning messages if one of...

gst-libs/gst/audio/multichannel.c: Give more useful warning messages if one of the channel layout enums passed to us ...

Original commit message from CVS:
* gst-libs/gst/audio/multichannel.c:
(gst_audio_check_channel_positions), (add_list_to_struct):
Give more useful warning messages if one of the channel
layout enums passed to us is invalid and if the "channels"
field in the caps has a GType we don't expect.
parent 29162d0a
2008-02-19 Tim-Philipp Müller <tim at centricular dot net>
* gst-libs/gst/audio/multichannel.c:
(gst_audio_check_channel_positions), (add_list_to_struct):
Give more useful warning messages if one of the channel
layout enums passed to us is invalid and if the "channels"
field in the caps has a GType we don't expect.
2008-02-19 Tim-Philipp Müller <tim at centricular dot net>
 
* gst-libs/gst/audio/multichannel.c:
......@@ -71,7 +71,7 @@ gst_audio_check_channel_positions (const GstAudioChannelPosition * pos,
for (n = 0; n < channels; n++) {
if (pos[n] <= GST_AUDIO_CHANNEL_POSITION_INVALID ||
pos[n] >= GST_AUDIO_CHANNEL_POSITION_NUM) {
g_warning ("Channel position %d is invalid, not allowed", n);
g_warning ("Channel position %d for channel %d is invalid", pos[n], n);
return FALSE;
}
}
......@@ -440,7 +440,8 @@ add_list_to_struct (GstStructure * str,
gst_caps_append_structure (caps, str);
}
} else {
g_warning ("Unknown value type for channels property");
g_warning ("Unexpected value type '%s' for channels property",
GST_STR_NULL (g_type_name (G_VALUE_TYPE (chan_val))));
}
return caps;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment