[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [SCM] Gnash branch, master, updated. 2bd76b9be1c16d1f70b2

From: Sandro Santilli
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. 2bd76b9be1c16d1f70b2315a818130c187830a48
Date: Wed, 24 Nov 2010 14:59:11 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  2bd76b9be1c16d1f70b2315a818130c187830a48 (commit)
      from  30c3e1ce8afca92c83492b3b0ec770f22eea2a63 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------

commit 2bd76b9be1c16d1f70b2315a818130c187830a48
Author: Sandro Santilli <address@hidden>
Date:   Wed Nov 24 15:59:02 2010 +0100

    Tell more about which codec failed AudioDecoderGst initialization

diff --git a/libmedia/gst/AudioDecoderGst.cpp b/libmedia/gst/AudioDecoderGst.cpp
index 11bb24f..25f52c2 100644
--- a/libmedia/gst/AudioDecoderGst.cpp
+++ b/libmedia/gst/AudioDecoderGst.cpp
@@ -182,8 +182,12 @@ void AudioDecoderGst::setup(GstCaps* srccaps)
     success = swfdec_gst_decoder_init (&_decoder, srccaps, sinkcaps, 
"audioconvert", resampler.c_str(), NULL);
     if (!success) {
-       /// @todo print more about why, and for which codec ...
-        throw MediaException(_("AudioDecoderGst: initialisation failed."));    
+        GstStructure* sct = gst_caps_get_structure(srccaps, 0);
+        std::string type(gst_structure_get_name(sct));
+        std::string msg = (boost::format(
+            _("AudioDecoderGst: initialisation failed for audio type %s!"))
+            % type).str();
+        throw MediaException(msg);
     gst_caps_unref (srccaps);


Summary of changes:
 libmedia/gst/AudioDecoderGst.cpp |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]