Do not invoke callback with null media packet 69/135169/1 accepted/tizen/4.0/unified/20170816.012428 accepted/tizen/4.0/unified/20170816.015255 accepted/tizen/4.0/unified/20170828.223822 accepted/tizen/unified/20170630.083339 submit/tizen/20170623.044702 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0/20170828.100002 submit/tizen_4.0_unified/20170814.115522
authorSeokHoon Lee <andy.shlee@samsung.com>
Wed, 21 Jun 2017 06:00:55 +0000 (15:00 +0900)
committerSeokHoon Lee <andy.shlee@samsung.com>
Wed, 21 Jun 2017 06:01:16 +0000 (15:01 +0900)
- If not find consumed buffer in managed packet,
  Do not callback function for consumed buffer.

Signed-off-by: SeokHoon Lee <andy.shlee@samsung.com>
Change-Id: Idb123b2e5b6ec9ce22271602cc4792d9a2d68fcd

packaging/capi-media-streamrecorder.spec
src/streamrecorder.c

index d0f7888275410aea29a9e2512f3fa270ef073f81..54faa2aaeffa2c015417b2b9e598a2f31c282e4b 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-streamrecorder
 Summary:    A Streamrecorder library in Tizen Native API
-Version:    0.0.11
+Version:    0.0.12
 Release:    0
 Group:      Multimedia/Other
 License:    Apache-2.0
index da0707fa6669d6d3936bb3db84c8476c23d92c4f..5cf10f2b91c023dca1c8c25adfad6737aff2896f 100644 (file)
@@ -966,7 +966,7 @@ static int __mm_streamrecorder_msg_cb(int message, void *param, void *user_data)
                        }
                }
 
-               if (handle->user_cb[_STREAMRECORDER_EVENT_TYPE_CONSUME_COMPLETE])
+               if (handle->user_cb[_STREAMRECORDER_EVENT_TYPE_CONSUME_COMPLETE] && consume)
                        ((streamrecorder_consume_completed_cb)handle->user_cb[_STREAMRECORDER_EVENT_TYPE_CONSUME_COMPLETE])(consume, handle->user_data[_STREAMRECORDER_EVENT_TYPE_CONSUME_COMPLETE]);
        }       break;
        case MM_MESSAGE_STREAMRECORDER_ERROR: