summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2003-10-27 00:40:37 +0000
committerBenjamin Otte <otte@gnome.org>2003-10-27 00:40:37 +0000
commitec57d276c3c98989fb71588ca5020589fb36ec46 (patch)
tree6c86a8721234cac2a923a57ec54835ea7dd095db
parent6c02719aa7d493bfa55d0fc5856b842d6c03900a (diff)
loads of fixes. Most of the stuff works now (only thing missing is vorbis streams)TYPEFIND
Original commit message from CVS: loads of fixes. Most of the stuff works now (only thing missing is vorbis streams)
-rw-r--r--ext/mad/gstmad.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/mad/gstmad.c b/ext/mad/gstmad.c
index 01aac7d7..9bc75e44 100644
--- a/ext/mad/gstmad.c
+++ b/ext/mad/gstmad.c
@@ -820,14 +820,16 @@ gst_mad_get_streaminfo (GstMad *mad)
klass = g_type_class_ref (GST_TYPE_MAD_MODE);
value = g_enum_get_value (klass,
mad->header.mode);
- entry = gst_props_entry_new ("mode", GST_PROPS_STRING (value->value_nick));
+ if (value)
+ entry = gst_props_entry_new ("mode", GST_PROPS_STRING (value->value_nick));
g_type_class_unref (klass);
gst_props_add_entry (props, (GstPropsEntry *) entry);
klass = g_type_class_ref (GST_TYPE_MAD_EMPHASIS);
value = g_enum_get_value (klass,
mad->header.emphasis);
- entry = gst_props_entry_new ("emphasis", GST_PROPS_STRING (value->value_nick));
+ if (value)
+ entry = gst_props_entry_new ("emphasis", GST_PROPS_STRING (value->value_nick));
g_type_class_unref (klass);
gst_props_add_entry (props, (GstPropsEntry *) entry);