rygel r436 - trunk/src/rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r436 - trunk/src/rygel
- Date: Tue, 13 Jan 2009 14:33:22 +0000 (UTC)
Author: zeeshanak
Date: Tue Jan 13 14:33:22 2009
New Revision: 436
URL: http://svn.gnome.org/viewvc/rygel?rev=436&view=rev
Log:
Only seek on upstream state change to PAUSED.
Modified:
trunk/src/rygel/rygel-gst-stream.vala
Modified: trunk/src/rygel/rygel-gst-stream.vala
==============================================================================
--- trunk/src/rygel/rygel-gst-stream.vala (original)
+++ trunk/src/rygel/rygel-gst-stream.vala Tue Jan 13 14:33:22 2009
@@ -221,9 +221,10 @@
ret = false;
} else if (message.type == MessageType.STATE_CHANGED) {
State new_state;
+ State old_state;
- message.parse_state_changed (null, out new_state, null);
- if (new_state == State.PAUSED) {
+ message.parse_state_changed (out old_state, out new_state, null);
+ if (new_state == State.PAUSED && old_state != State.PLAYING) {
if (this.seek_event != null) {
// Time to shove-in the pending seek event
this.pipeline.send_event (this.seek_event);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]