summaryrefslogtreecommitdiff
path: root/legacy/emotion/src
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@datenfreihafen.org>2012-06-15 14:11:42 +0000
committerStefan Schmidt <stefan@datenfreihafen.org>2012-06-15 14:11:42 +0000
commit735115f58104fb37221d4f56868c34d9f053e5f9 (patch)
tree63bbf946a25eca15f04327d375941ab4c792c24a /legacy/emotion/src
parent17e3f9d47cb1da5c33c5c67fac3f3f61924ae773 (diff)
emotion/gstreamer: Don't store return values if nobody reads them anyway.
em_pos_set() returns void in all modules. Not much use of the return values in this case. SVN revision: 72193
Diffstat (limited to 'legacy/emotion/src')
-rw-r--r--legacy/emotion/src/modules/gstreamer/emotion_gstreamer.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/legacy/emotion/src/modules/gstreamer/emotion_gstreamer.c b/legacy/emotion/src/modules/gstreamer/emotion_gstreamer.c
index 9d6b213563..38abf57dd2 100644
--- a/legacy/emotion/src/modules/gstreamer/emotion_gstreamer.c
+++ b/legacy/emotion/src/modules/gstreamer/emotion_gstreamer.c
@@ -621,16 +621,15 @@ em_pos_set(void *video,
621 double pos) 621 double pos)
622{ 622{
623 Emotion_Gstreamer_Video *ev; 623 Emotion_Gstreamer_Video *ev;
624 gboolean res;
625 624
626 ev = (Emotion_Gstreamer_Video *)video; 625 ev = (Emotion_Gstreamer_Video *)video;
627 626
628 if (!ev->pipeline) return ; 627 if (!ev->pipeline) return ;
629 628
630 if (ev->play) 629 if (ev->play)
631 res = gst_element_set_state(ev->pipeline, GST_STATE_PAUSED); 630 gst_element_set_state(ev->pipeline, GST_STATE_PAUSED);
632 631
633 res = gst_element_seek(ev->pipeline, 1.0, 632 gst_element_seek(ev->pipeline, 1.0,
634 GST_FORMAT_TIME, 633 GST_FORMAT_TIME,
635 GST_SEEK_FLAG_ACCURATE | GST_SEEK_FLAG_FLUSH, 634 GST_SEEK_FLAG_ACCURATE | GST_SEEK_FLAG_FLUSH,
636 GST_SEEK_TYPE_SET, 635 GST_SEEK_TYPE_SET,
@@ -638,7 +637,7 @@ em_pos_set(void *video,
638 GST_SEEK_TYPE_NONE, -1); 637 GST_SEEK_TYPE_NONE, -1);
639 638
640 if (ev->play) 639 if (ev->play)
641 res = gst_element_set_state(ev->pipeline, GST_STATE_PLAYING); 640 gst_element_set_state(ev->pipeline, GST_STATE_PLAYING);
642} 641}
643 642
644static double 643static double