[gstreamer-bugs] [Bug 538176] State change trouble with decodebin and empty files

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Fri Jun 13 11:29:12 PDT 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=538176

  GStreamer | gstreamer (core) | Ver: 0.10.18

Tim-Philipp Müller changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |t.i.m at zen.co.uk
             Status|UNCONFIRMED                 |NEEDINFO




------- Comment #2 from Tim-Philipp Müller  2008-06-13 18:29 UTC -------
Just some quick comments (have only glanced at the code, not tried it):

  - it's generally a bad idea to use gst_element_get_state (..., NONE)
    in a real application, because it won't ever return if an error
    occurs outside of the state change function (e.g. an error in
    the streaming thread)

  - downward state changes are immediate, you don't need to do a
    _get_state() after a _set_state (pipeline, NULL). (And in
    general, waiting for a state change with get_state usually
    only really needs to be done if _set_change() returned
    STATE_CHANGE_ASYNC, as it will usually only for state
    changes to PAUSED/PLAYING).

 - if you just want the tags, it's easiest to set the pipeline
   to PAUSED state and then do something like:

     msg = gst_bus_poll (pipeline_bus,
                         GST_MESSAGE_TAG |
                         GST_MESSAGE_ASYNC |
                         GST_MESSAGE_EOS |
                         GST_MESSAGE_ERROR);

   in  a loop until you get ASYNC, EOS or ERROR. This will iterate the
   main context though; gst_bus_pop_filtered() does the same thing without
   iterating the default main context.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=538176.




More information about the Gstreamer-bugs mailing list