mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
wrappercamerabinsrc: Avoid clearing recording caps
When recording 2 videos in sequence with the same video-capture-caps, the second video would get a not-negotiated error because the src caps were being cleared without any intention of renegotiating it back to the requested capture caps. This patch avoids this caps reset procedure unless a new caps was set.
This commit is contained in:
parent
935675a060
commit
18602e6e4e
1 changed files with 4 additions and 4 deletions
|
@ -922,11 +922,11 @@ gst_wrapper_camera_bin_src_start_capture (GstBaseCameraSrc * camerasrc)
|
|||
} else if (src->mode == MODE_VIDEO) {
|
||||
GstCaps *caps = NULL;
|
||||
|
||||
g_mutex_unlock (camerasrc->capturing_mutex);
|
||||
gst_wrapper_camera_bin_reset_video_src_caps (src, NULL);
|
||||
g_mutex_lock (camerasrc->capturing_mutex);
|
||||
|
||||
if (src->video_renegotiate) {
|
||||
g_mutex_unlock (camerasrc->capturing_mutex);
|
||||
gst_wrapper_camera_bin_reset_video_src_caps (src, NULL);
|
||||
g_mutex_lock (camerasrc->capturing_mutex);
|
||||
|
||||
/* clean capsfilter caps so they don't interfere here */
|
||||
g_object_set (src->src_filter, "caps", NULL, NULL);
|
||||
if (src->src_zoom_filter)
|
||||
|
|
Loading…
Reference in a new issue