problem in seeking while pause

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

problem in seeking while pause

vijayp
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

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel