[Bug 783925] qtmultimedia may not work well with v4l2 decoder

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Dec 28 09:06:10 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=783925

--- Comment #10 from Randy Li (ayaka) <ayaka at soulik.info> ---
(In reply to Nicolas Dufresne (stormer) from comment #9)
> Are you able to retest this with master and this change ?
> 
> 
> @@ -522,6 +552,7 @@ gst_v4l2_video_dec_handle_frame (GstVideoDecoder *
> decoder,
>    GstFlowReturn ret = GST_FLOW_OK;
>    gboolean processed = FALSE;
>    GstBuffer *tmp;
> +  GstTaskState task_state;
>  
>    GST_DEBUG_OBJECT (self, "Handling frame %d", frame->system_frame_number);
>  
> @@ -649,8 +680,8 @@ gst_v4l2_video_dec_handle_frame (GstVideoDecoder *
> decoder,
>        goto activate_failed;
>    }
>  
> -  if (gst_pad_get_task_state (GST_VIDEO_DECODER_SRC_PAD (self)) ==
> -      GST_TASK_STOPPED) {
> +  task_state = gst_pad_get_task_state (GST_VIDEO_DECODER_SRC_PAD (self));
> +  if (task_state == GST_TASK_STOPPED || task_state == GST_TASK_PAUSED) {

It solved the problem, but I need more time to verified this.

-- 
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