State changes in playback starting time

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

State changes in playback starting time

anisci
Hi, All

When I start to play a video file using gstreamer, a lot of state changes occur frequently between STATE_PLAYING and STATE_PAUSED.

Of course, a player works well, however I wonder why these state changes occur.

Can anyone answer to me?



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: State changes in playback starting time

Wim Taymans
On Fri, 2008-02-29 at 11:01 +0900, anisci wrote:
> Hi, All
>
> When I start to play a video file using gstreamer, a lot of state
> changes occur frequently between STATE_PLAYING and STATE_PAUSED.
>
> Of course, a player works well, however I wonder why these state
> changes occur.

State changes between PAUSED and PLAYING are usually because of a
flushing seek. A seek will set the pipeline state back to PAUSED in
order to restore synchronisation after the seek. There is more info
about the state changes in the design docs.

Wim

>
> Can anyone answer to me?
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: State changes in playback starting time

Stefan Sauer
In reply to this post by anisci
hi,

Quoting anisci <[hidden email]>:

> Hi, All
>
> When I start to play a video file using gstreamer, a lot of state changes
> occur frequently between STATE_PLAYING and STATE_PAUSED.
>
> Of course, a player works well, however I wonder why these state changes
> occur.
>
> Can anyone answer to me?
>

Also note that there is a state-change for each element. Look at the  
message source and filter to get only those for the pipline if you  
like to know abou overall ones.

Stefan


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel