gnash-commit
[Top][All Lists]
Advanced

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

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


From: Sandro Santilli
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-341-gcfc86de
Date: Thu, 19 May 2011 07:44:04 +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  cfc86ded190b7c4fed1253807528c777df3de342 (commit)
      from  6b75169f001d96803ea55eb3d8ed5df5812948de (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 -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=cfc86ded190b7c4fed1253807528c777df3de342


commit cfc86ded190b7c4fed1253807528c777df3de342
Author: Sandro Santilli <address@hidden>
Date:   Thu May 19 09:42:26 2011 +0200

    Do not call .front() on an empty vector (the media handler list when 
--disable-media is given). Fixes bug #33338

diff --git a/gui/gnash.cpp b/gui/gnash.cpp
index c12b81e..f99e7f8 100644
--- a/gui/gnash.cpp
+++ b/gui/gnash.cpp
@@ -386,7 +386,8 @@ getSupportedOptions(gnash::Player& p)
         ).c_str())
 
     ("media,M", po::value<string>()
-        ->default_value(rcfile.getMediaHandler().empty() ? handlers.front()
+        ->default_value(rcfile.getMediaHandler().empty() ?
+            ( handlers.empty() ? "" : handlers.front() )
                                                  : rcfile.getMediaHandler() )
         ->notifier(boost::bind(&Player::setMedia, &p, _1)),
         (string(_("The media handler to use"))

-----------------------------------------------------------------------

Summary of changes:
 gui/gnash.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

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