mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
fix for appsink GstFlowReturn
This commit is contained in:
parent
e46b45b0b8
commit
24bab1e5a8
2 changed files with 5 additions and 3 deletions
|
@ -552,7 +552,7 @@ done:
|
||||||
g_mutex_unlock (&context->mutex);
|
g_mutex_unlock (&context->mutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static GstFlowReturn
|
||||||
convert_frame_new_preroll_callback (GstElement * sink,
|
convert_frame_new_preroll_callback (GstElement * sink,
|
||||||
GstVideoConvertSampleContext * context)
|
GstVideoConvertSampleContext * context)
|
||||||
{
|
{
|
||||||
|
@ -577,6 +577,8 @@ convert_frame_new_preroll_callback (GstElement * sink,
|
||||||
|
|
||||||
done:
|
done:
|
||||||
g_mutex_unlock (&context->mutex);
|
g_mutex_unlock (&context->mutex);
|
||||||
|
|
||||||
|
return GST_FLOW_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -17,7 +17,7 @@ typedef struct
|
||||||
|
|
||||||
/* called when the appsink notifies us that there is a new buffer ready for
|
/* called when the appsink notifies us that there is a new buffer ready for
|
||||||
* processing */
|
* processing */
|
||||||
static void
|
static GstFlowReturn
|
||||||
on_new_sample_from_sink (GstElement * elt, ProgramData * data)
|
on_new_sample_from_sink (GstElement * elt, ProgramData * data)
|
||||||
{
|
{
|
||||||
GstSample *sample;
|
GstSample *sample;
|
||||||
|
@ -36,7 +36,7 @@ on_new_sample_from_sink (GstElement * elt, ProgramData * data)
|
||||||
|
|
||||||
/* get source an push new buffer */
|
/* get source an push new buffer */
|
||||||
source = gst_bin_get_by_name (GST_BIN (data->sink), "testsource");
|
source = gst_bin_get_by_name (GST_BIN (data->sink), "testsource");
|
||||||
gst_app_src_push_buffer (GST_APP_SRC (source), app_buffer);
|
return gst_app_src_push_buffer (GST_APP_SRC (source), app_buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* called when we get a GstMessage from the source pipeline when we get EOS, we
|
/* called when we get a GstMessage from the source pipeline when we get EOS, we
|
||||||
|
|
Loading…
Reference in a new issue