niimaqdxsrc: on timeout return GST_FLOW_ERROR
This commit is contained in:
parent
1bc0829d81
commit
de488ab3a8
@ -649,7 +649,6 @@ static GstFlowReturn
|
|||||||
gst_niimaqdxsrc_fill (GstPushSrc * psrc, GstBuffer * buf)
|
gst_niimaqdxsrc_fill (GstPushSrc * psrc, GstBuffer * buf)
|
||||||
{
|
{
|
||||||
GstNiImaqDxSrc *src = GST_NIIMAQDXSRC (psrc);
|
GstNiImaqDxSrc *src = GST_NIIMAQDXSRC (psrc);
|
||||||
GstFlowReturn ret = GST_FLOW_OK;
|
|
||||||
GstClockTime timestamp = GST_CLOCK_TIME_NONE;
|
GstClockTime timestamp = GST_CLOCK_TIME_NONE;
|
||||||
GstClockTime duration;
|
GstClockTime duration;
|
||||||
uInt32 copied_number;
|
uInt32 copied_number;
|
||||||
@ -700,7 +699,7 @@ gst_niimaqdxsrc_fill (GstPushSrc * psrc, GstBuffer * buf)
|
|||||||
gst_niimaqdxsrc_report_imaq_error (rval);
|
gst_niimaqdxsrc_report_imaq_error (rval);
|
||||||
GST_ELEMENT_ERROR (src, RESOURCE, FAILED,
|
GST_ELEMENT_ERROR (src, RESOURCE, FAILED,
|
||||||
("failed to copy buffer %d", src->cumbufnum), (NULL));
|
("failed to copy buffer %d", src->cumbufnum), (NULL));
|
||||||
goto error;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (src->is_jpeg) {
|
if (src->is_jpeg) {
|
||||||
@ -787,12 +786,7 @@ gst_niimaqdxsrc_fill (GstPushSrc * psrc, GstBuffer * buf)
|
|||||||
/* set cumulative buffer number to get next frame */
|
/* set cumulative buffer number to get next frame */
|
||||||
src->cumbufnum = copied_number + 1;
|
src->cumbufnum = copied_number + 1;
|
||||||
|
|
||||||
return ret;
|
return GST_FLOW_OK;
|
||||||
|
|
||||||
error:
|
|
||||||
{
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user