]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gst-plugins-ugly0-10.git/commitdiff
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 b1fbb5f00f151cfe044a326f72158e3a32b7b771..4617f23237ea5cd24166aa2211effee309c808b3 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;
 }