bugGnash - The GNU Flash player - Bugs: bug #33339, "Error: Non-existent media...

 
 

bug #33339: "Error: Non-existent media handler specified" on fb-gnash

Submitted by:  Gabriele Mondada <gmondada>
Submitted on:  Wed 18 May 2011 02:12:38 PM UTC  
 
Category: guiSeverity: 3 - Normal
Release: NoneStatus: Fixed
Privacy: PublicAssigned to: Sandro Santilli <strk>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 19 May 2011 06:59:08 AM UTC, comment #4:

The problem is solved with this version. Thanks a lot :-)

Gabriele Mondada <gmondada>
Wed 18 May 2011 03:38:09 PM UTC, comment #3:

Try with the git version (master 6b75169f001d96803ea55eb3d8ed5df5812948de)

Sandro Santilli <strk>
Project MemberIn charge of this item.
Wed 18 May 2011 02:52:39 PM UTC, comment #2:

This workaround only prevent the error message to appear and to exit gnash. With this workaround, I'm able to run gnash.

Gabriele Mondada <gmondada>
Wed 18 May 2011 02:37:38 PM UTC, comment #1:

A better fix would be to only skip the test if _media.empty().
That way we'd still error out if someone tries to set a non-existent media handler.

Btw, does your workaround really prevent other crashes later ?

Sandro Santilli <strk>
Project MemberIn charge of this item.
Wed 18 May 2011 02:12:38 PM UTC, original submission:

On debian squeeze i686, gnash 0.8.9 from tarball, patched with workaround of bug #33338, with:

./configure --prefix=/usr/xxx --disable-menus --enable-renderer=agg --enable-gui=fb --disable-plugins --disable-sound --enable-media=none --enable-input=touchscreen

Launching fb-gnash toto.swf I get the error:

Error: Non-existent media handler specified

Workaround (patch):

diff -ru gnash-0.8.9.orig/gui/Player.cpp gnash-0.8.9/gui/Player.cpp
--- gnash-0.8.9.orig/gui/Player.cpp 2011-02-26 19:11:07.000000000 +0100
+++ gnash-0.8.9/gui/Player.cpp 2011-05-18 14:38:51.000000000 +0200
@@ -433,14 +433,14 @@
_runResources->setRenderBackend(_renderer);

_mediaHandler.reset(media::MediaFactory::instance().get(_media));
-
+/*
if (!_mediaHandler.get()) {
boost::format fmt =
boost::format(_("Non-existent media handler %1% specified"))
% _media;
throw GnashException(fmt.str());
}
-
+*/
_runResources->setMediaHandler(_mediaHandler);

init_sound();

Maybe due to option --enable-media=none

Gabriele Mondada <gmondada>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by strk (Posted a comment)
  • -unavailable- added by gmondada (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 19 May 2011 07:30:15 AM UTCstrkStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Wed 18 May 2011 03:38:09 PM UTCstrkStatusNone=>Ready For Test
      Assigned toNone=>strk
    Wed 18 May 2011 02:37:38 PM UTCstrkCategorygui-fb=>gui

    Back to the top


    Powered by Savane 3.1-cleanup1