chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
server/gstdecode.c: Remove pointless casts to `GstElement'.
[disorder]
/
server
/
gstdecode.c
diff --git
a/server/gstdecode.c
b/server/gstdecode.c
index ac2884d8d9f60e1ed5298210de168e05e36cdc6a..42ccd7c3982c049f4a84f186bcb48f088437d89d 100644
(file)
--- 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_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);
/* 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.
*/
/* 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)
}
static int getenum(const char *what, const char *s, const char *const *tags)