convertframe: Only go to PAUSED state for the async variant
We only care for the pre-roll sample.
This commit is contained in:
parent
d9cf2973da
commit
963a318c86
@ -320,7 +320,6 @@ gst_video_convert_sample (GstSample * sample, const GstCaps * to_caps,
|
||||
from_caps = gst_sample_get_caps (sample);
|
||||
g_return_val_if_fail (from_caps != NULL, NULL);
|
||||
|
||||
|
||||
to_caps_copy = gst_caps_new_empty ();
|
||||
n = gst_caps_get_size (to_caps);
|
||||
for (i = 0; i < n; i++) {
|
||||
@ -767,7 +766,7 @@ gst_video_convert_sample_async (GstSample * sample,
|
||||
gst_object_unref (bus);
|
||||
|
||||
if (gst_element_set_state (pipeline,
|
||||
GST_STATE_PLAYING) == GST_STATE_CHANGE_FAILURE)
|
||||
GST_STATE_PAUSED) == GST_STATE_CHANGE_FAILURE)
|
||||
goto state_change_failed;
|
||||
|
||||
gst_caps_unref (to_caps_copy);
|
||||
|
Loading…
x
Reference in New Issue
Block a user