problem in seeking while pause

vijay pvijaii at gmail.com
Wed Oct 12 10:41:31 PDT 2011


Hi,
I am writing wma parser and decoder plugin.Normal playing and seeking are
working properly in rhythmbox player.

while i seek after pause it coming to seek event but it not returning from
the  "gst_pause_task" function call.

below is my my seek function code


{
gst_event_parse_seek (event, &rate, &format, &flags,
  &cur_type, &cur, &stop_type, &stop);


  gst_pad_pause_task (filter->sinkpad);
  printf("flush start \n");
  flush_event = gst_event_new_flush_start ();
  res  = gst_pad_push_event (filter->srcpad, flush_event);

  //gst_pad_pause_task (filter->sinkpad);
  /***************/
  dec_time = cur/1000000;

  rc = gst_WMAFileSeek(filter->pASFHandle,dec_time,&actual_time);

  flush_event = gst_event_new_flush_stop ();
  res  = gst_pad_push_event (filter->srcpad, flush_event);
  /****************/

  new_event= gst_event_new_new_segment (FALSE, 1,
GST_FORMAT_TIME,(gint64)actual_time*1000000,filter->total_time ,
                                              (gint64)actual_time*1000000);

  res  = gst_pad_push_event (GST_PAD_CAST (filter->srcpad), new_event);


  gst_pad_start_task (filter->sinkpad, (GstTaskFunction)
gst_wma_parser_loop,
      filter->sinkpad);


  }


Can any one give me solution for this problem.


Regards,
Vijay P
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111012/4beb6c83/attachment.htm>


More information about the gstreamer-devel mailing list