[Bug 768366] New: Add "set paly video speed" function fail on android
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Mon Jul 4 09:59:37 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=768366
Bug ID: 768366
Summary: Add "set paly video speed" function fail on android
Classification: Platform
Product: GStreamer
Version: 1.8.0
OS: Linux
Status: NEW
Severity: blocker
Priority: Normal
Component: gstreamer (core)
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: ereate.wang at qq.com
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
this is my code :
EXPORT_API void gub_pipeline_set_play_video_speed(GUBPipeline *pipeline,
gdouble speed)
{
gint64 position = GST_CLOCK_TIME_NONE;
GstEvent *seek_event;
gub_log_pipeline(pipeline, "ereate:: Setting play speed to %g", speed);
gst_element_query_position(pipeline->pipeline, GST_FORMAT_TIME, &position);
if(speed>0)
{
seek_event=gst_event_new_seek(speed,GST_FORMAT_TIME,GST_SEEK_FLAG_FLUSH|GST_SEEK_FLAG_ACCURATE,
GST_SEEK_TYPE_SET,position,GST_SEEK_TYPE_NONE,GST_CLOCK_TIME_NONE);
}
else
{
seek_event=gst_event_new_seek(speed,GST_FORMAT_TIME,GST_SEEK_FLAG_FLUSH|GST_SEEK_FLAG_ACCURATE,
GST_SEEK_TYPE_SET,0,GST_SEEK_TYPE_SET,position);
}
if(seek_event==NULL)
{
gub_log_pipeline(pipeline,"ereate:: gub_pipeline_set_volume(): get
seek_event failled....");
return ;
}
if(pipeline->video_sink ==NULL)
{
//GstElement
//sink = gst_bin_get_by_name(GST_BIN(vsink), "sink");
g_object_get(pipeline->pipeline,"video-sink",&(pipeline->video_sink),NULL);
if(pipeline->video_sink == NULL)
{
gub_log_pipeline(pipeline,"ereate:: gub_pipeline_set_volume(): get
video_sink failled....");
return ;
}
}
gst_element_send_event(pipeline->video_sink,seek_event);
}
when I call the function "gub_pipeline_set_play_video_speed", the video stop to
play video .
The Log:
GStreamer encountered a general supporting library error.
(gstamcvideodec.c(1020): _gl_sync_render_unlocked ():
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstAmcVideoDec-OmxQcomVideoDecod.
could you help me to solve the problem ?
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list