Not sure what could be the exact usage of same?
But if we just jump to last frame it might happen that last frame is a black (probablity is high) , will still it be useful.


On Sat, Feb 27, 2010 at 9:37 PM, wl2776 <> wrote:

Further studies have shown, that this doesn't work on all files. I tried avi
and mpeg-2 PS files.
I am still looking for reliable solution.
I am developing a medial player with GStreamer, in windows. My task is to
make it to jump to the end of file and display the last frame.

I use playbin2 with directdraw videosink.

wl2776 wrote:
> void gst_player::go_end()
> {
>   if(m_player){
>     gboolean rb;
>     int attempts=0;
>     do {
>       rb=gst_element_seek(GST_ELEMENT(m_player),-1.0,
>                   GST_SEEK_TYPE_SET,0,GST_SEEK_TYPE_END,0);
>       if(!rb) Sleep(100);
>     }while(!rb || ++attempts>3);
>     if(rb){
>         gst_element_set_state(GST_ELEMENT(m_player),GST_STATE_PLAYING);
>     }
>   }
> }
> This makes the playbin2 to display the last frame.
> In all other cases, I've tried, it successfully positioned to the end of
> file, but didn't draw the last frame.

View this message in context:
Sent from the GStreamer-devel mailing list archive at

Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
gstreamer-devel mailing list