identity: Fix the ts-offset property getter
authorPhilippe Normand <philn@igalia.com>
Thu, 11 Jul 2019 16:53:53 +0000 (17:53 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 8 Aug 2019 21:15:43 +0000 (22:15 +0100)
Previous code was a copy/paste from the property setter function.

plugins/elements/gstidentity.c

index 1577d97..bf6ba40 100644 (file)
@@ -852,7 +852,7 @@ gst_identity_get_property (GObject * object, guint prop_id, GValue * value,
       g_value_set_boolean (value, identity->sync);
       break;
     case PROP_TS_OFFSET:
-      identity->ts_offset = g_value_get_int64 (value);
+      g_value_set_int64 (value, identity->ts_offset);
       break;
     case PROP_CHECK_IMPERFECT_TIMESTAMP:
       g_value_set_boolean (value, identity->check_imperfect_timestamp);