Doesn't copy unknown format at media packet create 82/46382/2 accepted/tizen/mobile/20150820.043544 accepted/tizen/tv/20150820.043555 accepted/tizen/wearable/20150820.043607 submit/tizen/20150820.013924
authorHyongtaek Lim <hyongtaek.lim@samsung.com>
Thu, 20 Aug 2015 01:13:07 +0000 (10:13 +0900)
committerHyongtaek Lim <hyongtaek.lim@samsung.com>
Thu, 20 Aug 2015 01:15:35 +0000 (10:15 +0900)
Signed-off-by: Hyongtaek Lim <hyongtaek.lim@samsung.com>
Change-Id: I9b2592cfddf57575c78a7769cce6d4d0092578d2

src/server/mm_player_priv.c

index bb890c6bb94d9b09437735200fe9ad1972d68906..d0a3c5ab703b6545934c11b709a40c41d3b14daf 100644 (file)
@@ -4954,15 +4954,16 @@ __mmplayer_video_stream_probe (GstPad *pad, GstPadProbeInfo *info, gpointer user
                        stream.elevation[1] = stream.elevation[2] = elevation / 2;
                }
                else {
-                       debug_error("default #plane is 2, format %d", stream.format);
-                       stream.stride[1] = stride;
-                       stream.elevation[1] = elevation / 2;
+                       debug_error("Not support format %d", stream.format);
+                       gst_memory_unmap(dataBlock, &mapinfo);
+                       return GST_PAD_PROBE_OK;
                }
 
                stream.bo[0] = tbm_bo_alloc(player->bufmgr, size, TBM_BO_DEFAULT);
                if(!stream.bo[0]) {
                        debug_error("Fail to tbm_bo_alloc!!");
-                       return TRUE;
+                       gst_memory_unmap(dataBlock, &mapinfo);
+                       return GST_PAD_PROBE_OK;
                }
                thandle = tbm_bo_map(stream.bo[0], TBM_DEVICE_CPU, TBM_OPTION_WRITE);
                if(thandle.ptr && mapinfo.data)