From: Mark Wooding Date: Tue, 10 Jul 2018 10:28:25 +0000 (+0100) Subject: server/gstdecode.c: Remove pointless casts to `GstElement'. X-Git-Tag: 5.2~33 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/be398aad0eab975dd06407ab5f186a156a4a0f72 server/gstdecode.c: Remove pointless casts to `GstElement'. The `pipeline' already is one. --- 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)