[Libreoffice-commits] .: avmedia/source
Radek DoulÃk
rodo at kemper.freedesktop.org
Mon Feb 21 04:53:08 PST 2011
avmedia/source/gstreamer/gstplayer.cxx | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
New commits:
commit f0fe2ccf15601c7c108ed6f4c2b98c99469484e8
Author: Radek Doulik <rodo at novell.com>
Date: Mon Feb 21 13:52:14 2011 +0100
extend debug output for gstreamer avmedia component
diff --git a/avmedia/source/gstreamer/gstplayer.cxx b/avmedia/source/gstreamer/gstplayer.cxx
index 018cc2e..f6ea729 100644
--- a/avmedia/source/gstreamer/gstplayer.cxx
+++ b/avmedia/source/gstreamer/gstplayer.cxx
@@ -155,7 +155,17 @@ void Player::processMessage( GstMessage *message )
GstBusSyncReply Player::processSyncMessage( GstMessage *message )
{
- DBG( "%p processSyncMessage", this );
+ DBG( "%p processSyncMessage: %s", this, GST_MESSAGE_TYPE_NAME( message ) );
+
+#if DEBUG
+ if ( GST_MESSAGE_TYPE( message ) == GST_MESSAGE_ERROR ) {
+ GError* error;
+ gchar* error_debug;
+
+ gst_message_parse_error( message, &error, &error_debug );
+ DBG("error: '%s' debug: '%s'", error->message, error_debug);
+ }
+#endif
if (message->structure) {
if( !strcmp( gst_structure_get_name( message->structure ), "prepare-xwindow-id" ) && mnWindowID != 0 ) {
@@ -273,6 +283,8 @@ bool Player::create( const ::rtl::OUString& rURL )
// create all the elements and link them
+ DBG("create player, URL: %s", OUStringToOString( rURL, RTL_TEXTENCODING_UTF8 ).getStr());
+
if( mbInitialized )
{
preparePlaybin( rURL, true );
More information about the Libreoffice-commits
mailing list