tinycompresssink: Add mp3 caps to limit audio format 26/201626/2 accepted/tizen/unified/20190320.082351 submit/tizen/20190319.112648
authorHyunil <hyunil46.park@samsung.com>
Mon, 18 Mar 2019 08:29:04 +0000 (17:29 +0900)
committerHyunil <hyunil46.park@samsung.com>
Mon, 18 Mar 2019 09:43:58 +0000 (18:43 +0900)
Change-Id: If3800caeb0cd219b6292a392bdffcec0b6ace331
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
tinycompresssink/src/gsttinycompresssink.c

index c4f5193..84671be 100644 (file)
 
 #define COMPRESS_VOL_CTRL "ComprTx0 Volume"
 
+#define MP3_CAPS "audio/mpeg, mpegversion = (int) 1, layer = (int) [ 1, 3 ], parsed = (boolean) true"
+
 static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
     GST_PAD_SINK,
     GST_PAD_ALWAYS,
-    GST_STATIC_CAPS_ANY);
+    GST_STATIC_CAPS (MP3_CAPS)
+);
 
 #define DEFAULT_SYNC TRUE
 #define DEFAULT_DUMP FALSE