diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2018-11-23 13:22:44 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2019-05-01 17:00:42 +0100 |
commit | 4d6d426536ad54cf4b08534033d03a2cefea0d5e (patch) | |
tree | c21dcfedf4714adc9dcfa23d13f57299cdfee9a3 | |
parent | 259d30c4802202c95ab78c2ef97b1288005c77f5 (diff) | |
download | gstreamer-plugins-base-4d6d426536ad54cf4b08534033d03a2cefea0d5e.tar.gz |
convertframe: Only go to PAUSED state for the async variant
We only care for the pre-roll sample.
-rw-r--r-- | gst-libs/gst/video/convertframe.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gst-libs/gst/video/convertframe.c b/gst-libs/gst/video/convertframe.c index b3aab9a42..1f0487a20 100644 --- a/gst-libs/gst/video/convertframe.c +++ b/gst-libs/gst/video/convertframe.c @@ -317,7 +317,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++) { @@ -764,7 +763,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); |