chiark / gitweb /
server/gstdecode.c: Remove pointless casts to `GstElement'.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 10 Jul 2018 10:28:25 +0000 (11:28 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 10 Jul 2018 11:11:11 +0000 (12:11 +0100)
The `pipeline' already is one.

server/gstdecode.c

index ac2884d8d9f60e1ed5298210de168e05e36cdc6a..42ccd7c3982c049f4a84f186bcb48f088437d89d 100644 (file)
@@ -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)