From c25b272826d0b1aaf3c21589d4d4136d02c0dc00 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Mon, 26 Aug 2019 16:13:14 -0700 Subject: binding: mediaplayer: fix compiler warning from gst_util_set_object_arg call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit First argument to the gst_util_set_object_arg call should be cast via G_OBJECT macro afm-mediaplayer-binding.c: In function ‘gstreamer_init’: afm-mediaplayer-binding.c:883:30: warning: passing argument 1 of ‘gst_util_set_object_arg’ from incompatible pointer type [-Wincompatible-pointer-types] gst_util_set_object_arg(data.audio_sink, "stream-properties", "p,media.role=Multimedia"); Bug-AGL: SPEC-2774 Change-Id: I5c93e7e6621f2db229a2a154f0c9d09853c78981 Signed-off-by: Matt Ranostay (cherry picked from commit 9e6546df4a072650536011ba34975102e8e78097) --- binding/afm-mediaplayer-binding.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'binding') diff --git a/binding/afm-mediaplayer-binding.c b/binding/afm-mediaplayer-binding.c index 5eaa982..15e29a2 100644 --- a/binding/afm-mediaplayer-binding.c +++ b/binding/afm-mediaplayer-binding.c @@ -880,7 +880,8 @@ static void gstreamer_init(afb_api_t api) AFB_ERROR("GST Pipeline: Failed to create 'pwaudiosink' element!"); exit(1); } - gst_util_set_object_arg(data.audio_sink, "stream-properties", "p,media.role=Multimedia"); + gst_util_set_object_arg(G_OBJECT(data.audio_sink), + "stream-properties", "p,media.role=Multimedia"); g_object_set(data.playbin, "audio-sink", data.fake_sink, NULL); AFB_DEBUG("GSTREAMER playbin.audio-sink = fake-sink"); -- cgit 1.2.3-korg