[snappy] snappy: don't start playback without content
- From: Luis de Bethencourt <luisbg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [snappy] snappy: don't start playback without content
- Date: Tue, 26 Mar 2013 17:20:54 +0000 (UTC)
commit 616a87b40691a345bd61806d96ab0177ebadb728
Author: Luis de Bethencourt <luis debethencourt com>
Date: Tue Mar 26 13:16:35 2013 -0400
snappy: don't start playback without content
src/snappy.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/snappy.c b/src/snappy.c
index eebff3f..81700fa 100644
--- a/src/snappy.c
+++ b/src/snappy.c
@@ -262,10 +262,11 @@ main (int argc, char *argv[])
set_subtitle_uri (engine, suburi);
}
- /* Start playing */
- change_state (engine, "Paused");
- change_state (engine, "Playing");
-
+ /* Start playing if we have a URI to play */
+ if (uri) {
+ change_state (engine, "Paused");
+ change_state (engine, "Playing");
+ }
#ifdef ENABLE_DBUS
/* Start MPRIS Dbus object */
mp_obj = g_new (SnappyMP, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]