aboutsummaryrefslogtreecommitdiffstats
path: root/binding/afm-mediaplayer-binding.c
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-08-26 16:13:14 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-08-26 16:29:16 -0700
commit9e6546df4a072650536011ba34975102e8e78097 (patch)
tree4ce427396bbabea11fd25b3b509928c5205c79a3 /binding/afm-mediaplayer-binding.c
parentdd6678ce125949aa93df7a00797b9d6d03369e36 (diff)
binding: mediaplayer: fix compiler warning from gst_util_set_object_arg call
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 <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding/afm-mediaplayer-binding.c')
-rw-r--r--binding/afm-mediaplayer-binding.c3
1 files changed, 2 insertions, 1 deletions
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");