x264enc: Don't register flags with a value of 0
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Mon, 14 Feb 2011 17:52:09 +0000 (17:52 +0000)
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>
Mon, 14 Feb 2011 17:52:12 +0000 (17:52 +0000)
Flags with a value of 0 aren't meaningful and will cause
g_value_transform to go into an endless loop when trying to
convert the flags to a string

ext/x264/gstx264enc.c

index b1fbb5f..4617f23 100644 (file)
@@ -376,7 +376,7 @@ gst_x264_enc_tune_get_type (void)
   static GType tune_type = 0;
 
   if (!tune_type) {
-    tune_type = g_flags_register_static ("GstX264EncTune", tune_types);
+    tune_type = g_flags_register_static ("GstX264EncTune", tune_types + 1);
   }
   return tune_type;
 }