From be398aad0eab975dd06407ab5f186a156a4a0f72 Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Tue, 10 Jul 2018 11:28:25 +0100 Subject: [PATCH] server/gstdecode.c: Remove pointless casts to `GstElement'. Organization: Straylight/Edgeware From: Mark Wooding The `pipeline' already is one. --- server/gstdecode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/gstdecode.c b/server/gstdecode.c index ac2884d..42ccd7c 100644 --- a/server/gstdecode.c +++ b/server/gstdecode.c @@ -477,7 +477,7 @@ static void decode(void) gst_app_sink_set_callbacks(appsink, &callbacks, 0, 0); /* Set the ball rolling. */ - gst_element_set_state(GST_ELEMENT(pipeline), GST_STATE_PLAYING); + gst_element_set_state(pipeline, GST_STATE_PLAYING); /* And wait for the miracle to come. */ g_main_loop_run(loop); @@ -485,7 +485,7 @@ static void decode(void) /* Shut down the pipeline. This isn't strictly necessary, since we're * about to exit very soon, but it's kind of polite. */ - gst_element_set_state(GST_ELEMENT(pipeline), GST_STATE_NULL); + gst_element_set_state(pipeline, GST_STATE_NULL); } static int getenum(const char *what, const char *s, const char *const *tags) -- [mdw]