task-vuplus-enigma2
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-enigma2 / enigma2 / enigma2 / enigma2_vuplus_mediaplayer_unpause.patch
diff --git a/meta-openvuplus/recipes-enigma2/enigma2/enigma2/enigma2_vuplus_mediaplayer_unpause.patch b/meta-openvuplus/recipes-enigma2/enigma2/enigma2/enigma2_vuplus_mediaplayer_unpause.patch
new file mode 100644 (file)
index 0000000..9c89ee6
--- /dev/null
@@ -0,0 +1,20 @@
+diff --git a/lib/service/servicemp3.cpp b/lib/service/servicemp3.cpp
+index ba21d0c..88eb16e 100644
+--- a/lib/service/servicemp3.cpp
++++ b/lib/service/servicemp3.cpp
+@@ -568,9 +568,13 @@ RESULT eServiceMP3::unpause()
+               return -1;
+       if(m_cur_rate!=1.0)
++      {
+               trickSeek(1);
+-
+-      gst_element_set_state(m_gst_playbin, GST_STATE_PLAYING);
++              gst_element_set_state(m_gst_playbin, GST_STATE_PLAYING);
++      }else if (gst_element_set_state(m_gst_playbin, GST_STATE_PLAYING)==2){
++              eDebug("eServiceMP3::unpause : the state change will happen asunchronously");
++              trickSeek(1);
++      }
+       return 0;
+ }