basesink: use the slightly more correct take_sample for last-sample

gst_value_take_buffer() and gst_value_take_sample() both resolve to
g_value_take_boxed().  Use the method with the correct name if we
ever change that.
This commit is contained in:
Matthew Waters 2015-05-25 21:02:28 +10:00
parent f9e5178dd1
commit 8bc0a6c562

View file

@ -1380,7 +1380,7 @@ gst_base_sink_get_property (GObject * object, guint prop_id, GValue * value,
g_value_set_int64 (value, gst_base_sink_get_ts_offset (sink));
break;
case PROP_LAST_SAMPLE:
gst_value_take_buffer (value, gst_base_sink_get_last_sample (sink));
gst_value_take_sample (value, gst_base_sink_get_last_sample (sink));
break;
case PROP_ENABLE_LAST_SAMPLE:
g_value_set_boolean (value, gst_base_sink_is_last_sample_enabled (sink));