typefindfunctions: Fixed symbol error 26/172626/1
authorGilbok Lee <gilbok.lee@samsung.com>
Thu, 15 Mar 2018 02:31:25 +0000 (11:31 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Thu, 15 Mar 2018 02:31:28 +0000 (11:31 +0900)
Setting the TIZEN_PROFILE_TV and TIZEN_FEATURE_DISABLE_MIME_TYPES
definitions together, plugin has symbolic error.

Change-Id: Ic07b9d7d2132692e72a47cfb86cfaf28687da717

gst/typefind/gsttypefindfunctions.c

index 4b7202d..c374cc1 100644 (file)
@@ -2120,8 +2120,10 @@ multipart_type_find (GstTypeFind * tf, gpointer unused)
     }
   }
 }
+#endif
 
 /*** video/mpeg systemstream ***/
+#if defined(TIZEN_PROFILE_TV) || !defined(TIZEN_FEATURE_DISABLE_MIME_TYPES)
 static GstStaticCaps mpeg_sys_caps = GST_STATIC_CAPS ("video/mpeg, "
     "systemstream = (boolean) true, mpegversion = (int) [ 1, 2 ]");
 
@@ -2130,7 +2132,7 @@ static GstStaticCaps mpeg_sys_caps = GST_STATIC_CAPS ("video/mpeg, "
 #define IS_MPEG_HEADER(data) (G_UNLIKELY((((guint8 *)(data))[0] == 0x00) &&  \
                                          (((guint8 *)(data))[1] == 0x00) &&  \
                                          (((guint8 *)(data))[2] == 0x01)))
-#ifndef TIZEN_FEATURE_DISABLE_MIME_TYPES
+#if defined(TIZEN_PROFILE_TV) || !defined(TIZEN_FEATURE_DISABLE_MIME_TYPES)
 #define IS_MPEG_PACK_CODE(b) ((b) == 0xBA)
 #define IS_MPEG_SYS_CODE(b) ((b) == 0xBB)
 #define IS_MPEG_PACK_HEADER(data)       (IS_MPEG_HEADER (data) &&            \
@@ -2140,7 +2142,6 @@ static GstStaticCaps mpeg_sys_caps = GST_STATIC_CAPS ("video/mpeg, "
                              (b) >= 0xBD)
 #define IS_MPEG_PES_HEADER(data)        (IS_MPEG_HEADER (data) &&            \
                                          IS_MPEG_PES_CODE (((guint8 *)(data))[3]))
-#endif
 
 #define MPEG2_MAX_PROBE_LENGTH (128 * 1024)     /* 128kB should be 64 packs of the
                                                  * most common 2kB pack size. */
@@ -2200,7 +2201,6 @@ mpeg_sys_is_valid_pack (GstTypeFind * tf, const guint8 * data, guint len,
   return FALSE;
 }
 
-#ifndef TIZEN_FEATURE_DISABLE_MIME_TYPES
 static gboolean
 mpeg_sys_is_valid_pes (GstTypeFind * tf, const guint8 * data, guint len,
     guint * pack_size)
@@ -5887,7 +5887,7 @@ plugin_init (GstPlugin * plugin)
       GST_RANK_SECONDARY, "Z", "\037\235", 2, GST_TYPE_FIND_LIKELY);
   TYPE_FIND_REGISTER (plugin, "subtitle/x-kate", GST_RANK_MARGINAL,
       kate_type_find, NULL, NULL, NULL, NULL);
-#endif   
+#endif
   TYPE_FIND_REGISTER (plugin, "application/x-subtitle-vtt", GST_RANK_MARGINAL,
       webvtt_type_find, "vtt", WEBVTT_CAPS, NULL, NULL);
   TYPE_FIND_REGISTER (plugin, "audio/x-flac", GST_RANK_PRIMARY, flac_type_find,