[snappy] engine: play next at EOS
- From: Luis de Bethencourt <luisbg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [snappy] engine: play next at EOS
- Date: Thu, 3 May 2012 21:19:07 +0000 (UTC)
commit 2a9a05c1b6ea5c98a96dd45c939bac8557b06025
Author: Luis de Bethencourt <luis debethencourt com>
Date: Thu May 3 22:17:57 2012 +0100
engine: play next at EOS
src/gst_engine.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/gst_engine.c b/src/gst_engine.c
index 57851df..8bfbf86 100644
--- a/src/gst_engine.c
+++ b/src/gst_engine.c
@@ -402,8 +402,11 @@ bus_call (GstBus * bus, GstMessage * msg, gpointer data)
/* When URI is finished remove from unfinished list */
remove_uri_unfinished_playback (engine, engine->uri);
- if (engine->loop)
+ if (engine->loop) {
engine_seek (engine, 0);
+ } else {
+ interface_play_next (ui);
+ }
break;
}
@@ -637,7 +640,7 @@ engine_open_uri (GstEngine * engine, gchar * uri)
/* Need to set back to Ready state so Playbin2 loads uri */
engine->uri = uri;
- g_print ("Open uri: %s\n", next_uri);
+ g_print ("Open uri: %s\n", uri);
gst_element_set_state (engine->player, GST_STATE_READY);
g_object_set (G_OBJECT (engine->player), "uri", uri, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]