[Top][All Lists]

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

[Gnash-commit] [SCM] Gnash branch, master, updated. d619d4ea5c0c85dcc7e8

From: Sandro Santilli
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. d619d4ea5c0c85dcc7e8df0035597f361a85a846
Date: Wed, 24 Nov 2010 15:19:49 +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  d619d4ea5c0c85dcc7e8df0035597f361a85a846 (commit)
      from  857a707592d755dad877af81451ab5b0f83469c9 (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 d619d4ea5c0c85dcc7e8df0035597f361a85a846
Author: Sandro Santilli <address@hidden>
Date:   Wed Nov 24 16:19:40 2010 +0100

    Tell more about which codec failed VideoDecoderGst initialization

diff --git a/libmedia/gst/VideoDecoderGst.cpp b/libmedia/gst/VideoDecoderGst.cpp
index bc712b4..959ab2d 100644
--- a/libmedia/gst/VideoDecoderGst.cpp
+++ b/libmedia/gst/VideoDecoderGst.cpp
@@ -148,7 +148,12 @@ VideoDecoderGst::setup(GstCaps* srccaps)
     bool rv = swfdec_gst_decoder_init (&_decoder, srccaps, sinkcaps,
             "ffmpegcolorspace", NULL);
     if (!rv) {
-        throw MediaException(_("VideoDecoderGst: initialisation failed."));    
+        GstStructure* sct = gst_caps_get_structure(srccaps, 0);
+        std::string type(gst_structure_get_name(sct));
+        std::string msg = (boost::format(
+            _("VideoDecoderGst: initialisation failed for video type %s!"))
+            % type).str();
+        throw MediaException(msg);
     gst_caps_unref (srccaps);


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


reply via email to

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