From 8535b72f38a718d2527be40d5aeb5524ae593ae6 Mon Sep 17 00:00:00 2001 From: mark Date: Sat, 28 Oct 2006 18:27:48 +0000 Subject: [PATCH] Optimize: Setting the pipeline to PAUSED before PLAYING is unnecessary. --- campcaster/src/modules/playlistExecutor/src/GstreamerPlayer.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/campcaster/src/modules/playlistExecutor/src/GstreamerPlayer.cxx b/campcaster/src/modules/playlistExecutor/src/GstreamerPlayer.cxx index 36586cb7c..c5519cbf2 100644 --- a/campcaster/src/modules/playlistExecutor/src/GstreamerPlayer.cxx +++ b/campcaster/src/modules/playlistExecutor/src/GstreamerPlayer.cxx @@ -285,7 +285,6 @@ GstreamerPlayer :: open(const std::string fileUrl) gst_element_link_many(decoder, fakesink, NULL); gst_bin_add_many(GST_BIN(pipe), filesrc, decoder, fakesink, NULL); - gst_element_set_state(pipe, GST_STATE_PAUSED); gst_element_set_state(pipe, GST_STATE_PLAYING); position = 0LL; @@ -408,7 +407,6 @@ GstreamerPlayer :: start(void) throw (std::logic_error) } if (!isPlaying()) { - gst_element_set_state(audiosink, GST_STATE_PAUSED); gst_element_set_state(pipeline, GST_STATE_PLAYING); } }