diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-28 16:13:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-28 18:53:50 +0200 |
commit | 273f59bdb5f446c119e1de4000e5bc7fb7266ea6 (patch) | |
tree | c42f9ab5bbb72a0d88ed5c1532346cbf1f505c4f /avmedia/source | |
parent | ebbf3ccf693d5b6813746e72719e04e1c7cd438d (diff) |
improve debug output for gstreamer backend
Change-Id: I9fd7af5726ebbca933d69a38669281f40c6c0319
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136576
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'avmedia/source')
-rw-r--r-- | avmedia/source/gstreamer/gstplayer.cxx | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/avmedia/source/gstreamer/gstplayer.cxx b/avmedia/source/gstreamer/gstplayer.cxx index bf939c4a603b..49a3a3351ccf 100644 --- a/avmedia/source/gstreamer/gstplayer.cxx +++ b/avmedia/source/gstreamer/gstplayer.cxx @@ -442,6 +442,28 @@ GstBusSyncReply Player::processSyncMessage( GstMessage *message ) "error: '" << error->message << "' debug: '" << error_debug << "'"); } + else if ( GST_MESSAGE_TYPE( message ) == GST_MESSAGE_WARNING ) + { + GError* error; + gchar* error_debug; + + gst_message_parse_warning( message, &error, &error_debug ); + SAL_WARN( + "avmedia.gstreamer", + "warning: '" << error->message << "' debug: '" + << error_debug << "'"); + } + else if ( GST_MESSAGE_TYPE( message ) == GST_MESSAGE_INFO ) + { + GError* error; + gchar* error_debug; + + gst_message_parse_info( message, &error, &error_debug ); + SAL_WARN( + "avmedia.gstreamer", + "info: '" << error->message << "' debug: '" + << error_debug << "'"); + } #endif if (!mbUseGtkSink) @@ -612,6 +634,8 @@ void SAL_CALL Player::start() { gst_element_set_state( mpPlaybin, GST_STATE_PLAYING ); } + + SAL_INFO( "avmedia.gstreamer", AVVERSION "start " << mpPlaybin ); } void SAL_CALL Player::stop() @@ -637,8 +661,6 @@ sal_Bool SAL_CALL Player::isPlaying() bRet = GST_STATE_TARGET(mpPlaybin) == GST_STATE_PLAYING; } - SAL_INFO( "avmedia.gstreamer", AVVERSION "isPlaying " << bRet ); - return bRet; } |