commit 1994201e8c6fbe92e1f1130626181b321aa47d38
Author: phantomjinx <[email protected]>
Date: Sun Jul 24 22:04:34 2011 +0100
Media player plugin fixes
* When the stop button is pressed, ensure the the play/pause button is
reset accordinly.
* Add some warning and debug information if the player fails to play.
plugins/media_player/media_player.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/plugins/media_player/media_player.c
b/plugins/media_player/media_player.c
index 2520f33..7308dab 100644
--- a/plugins/media_player/media_player.c
+++ b/plugins/media_player/media_player.c
@@ -261,6 +261,8 @@ static void stop_song() {
waitforpipeline(GST_STATE_NULL);
player->thread = NULL;
+
+ set_control_state(GST_STATE_NULL);
}
static void pause_or_play_song() {
@@ -341,6 +343,16 @@ static int pipeline_bus_watch_cb(GstBus *bus, GstMessage
*msg, gpointer data) {
break;
case GST_MESSAGE_ERROR: {
g_idle_add(thread_stop_song, NULL);
+
+ GError *err = NULL;
+ gchar *dbg_info = NULL;
+
+ gst_message_parse_error (msg, &err, &dbg_info);
+ g_warning ("ERROR from element %s: %s\n",
+ GST_OBJECT_NAME (msg->src), err->message);
+ g_warning ("Debugging info: %s\n", (dbg_info) ? dbg_info : "none");
+ g_error_free (err);
+ g_free (dbg_info);
break;
}
default:
------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2