Add missed parameter for EOS of dbus sound play 24/268524/1 accepted/tizen/unified/20211228.140318 submit/tizen/20211227.093353
authorJeongmo Yang <jm80.yang@samsung.com>
Fri, 24 Dec 2021 05:34:38 +0000 (14:34 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Fri, 24 Dec 2021 05:34:38 +0000 (14:34 +0900)
[Version] 0.10.251
[Issue Type] Bug fix

Change-Id: I0acd51f67676e0288908f9e65e8b13e5576150a0
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/libmm-camcorder.spec
src/mm_camcorder_util.c

index 71aadbf..181699f 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       libmm-camcorder
 Summary:    Camera and recorder library
-Version:    0.10.250
+Version:    0.10.251
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index b3ab5a5..8dbea0b 100644 (file)
@@ -165,6 +165,7 @@ static void __gdbus_stream_eos_cb(GDBusConnection *connection,
        const gchar *signal_name, GVariant *param, gpointer user_data)
 {
        int played_idx = 0;
+       gboolean stopped_by_user = FALSE;
        _MMCamcorderGDbusCbInfo *gdbus_info = NULL;
        mmf_camcorder_t *hcamcorder = NULL;
 
@@ -178,12 +179,12 @@ static void __gdbus_stream_eos_cb(GDBusConnection *connection,
        gdbus_info = (_MMCamcorderGDbusCbInfo *)user_data;
        hcamcorder = (mmf_camcorder_t *)gdbus_info->mm_handle;
 
-       g_variant_get(param, "(i)", &played_idx);
+       g_variant_get(param, "(ib)", &played_idx, &stopped_by_user);
 
        g_mutex_lock(&gdbus_info->sync_mutex);
 
-       MMCAM_LOG_WARNING("gdbus_info->param %d, played_idx : %d, handle : %p",
-               gdbus_info->param, played_idx, hcamcorder);
+       MMCAM_LOG_WARNING("gdbus_info->param %d, played_idx %d, stopped_by_user %d, handle %p",
+               gdbus_info->param, played_idx, stopped_by_user, hcamcorder);
 
        if (gdbus_info->param == played_idx) {
                g_dbus_connection_signal_unsubscribe(connection, gdbus_info->subscribe_id);