pause playback, then start playback after 1-2s, and repeat this process many times (100+ times), the playback will be stuck
Donghui Bai
1141006410 at qq.com
Mon Jun 13 07:09:21 UTC 2016
Hi all,
I use gstreamer 1.8.2 to instead of MediaPlayer in Android, and use the
androidmedia(playbin2 automatically linked) plugin to decode the H264 video.
*The playback is fine normally, but when I pause playback, then start
playback after 1-2s, and repeat this process many times (100+ times), the
playback will be stuck.*
I add some log in androidmedia (gstamcvideodec.c gst_amc_video_dec_loop), as
follow:
------------------------------------------------------------------------------------
static void
gst_amc_video_dec_loop (GstAmcVideoDec * self)
{
...
__android_log_print(ANDROID_LOG_DEBUG,
"TEST",
"%s %s %d",
__FILE__, __FUNCTION__, __LINE__);
flow_ret = gst_video_decoder_finish_frame (GST_VIDEO_DECODER (self),
frame);
__android_log_print(ANDROID_LOG_DEBUG,
"TEST",
"%s %s %d",
__FILE__, __FUNCTION__, __LINE__);
...
}
------------------------------------------------------------------------------------
then found that gst_video_decoder_finish_frame blocked and did not return in
gst_amc_video_dec_loop, I think it result in stuck.
Why gst_video_decoder_finish_frame blocked? Is this some kind of bug, or am
I missing something?
Best regards,
Bai
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/pause-playback-then-start-playback-after-1-2s-and-repeat-this-process-many-times-100-times-the-playbk-tp4677994.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list