diff options
Diffstat (limited to 'src/plugins/gstreamer/camerabin')
-rw-r--r-- | src/plugins/gstreamer/camerabin/camerabinsession.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/plugins/gstreamer/camerabin/camerabinsession.cpp b/src/plugins/gstreamer/camerabin/camerabinsession.cpp index 1c14444bb..fdedc5f5a 100644 --- a/src/plugins/gstreamer/camerabin/camerabinsession.cpp +++ b/src/plugins/gstreamer/camerabin/camerabinsession.cpp @@ -836,6 +836,17 @@ void CameraBinSession::load() return; } +#if QT_CONFIG(gstreamer_encodingprofiles) + GstEncodingContainerProfile *profile = m_recorderControl->videoProfile(); + if (profile) { + g_object_set (G_OBJECT(m_camerabin), + "video-profile", + profile, + NULL); + gst_encoding_profile_unref(profile); + } +#endif + gst_element_set_state(m_camerabin, GST_STATE_READY); } @@ -871,15 +882,6 @@ void CameraBinSession::start() m_recorderControl->applySettings(); -#if QT_CONFIG(gstreamer_encodingprofiles) - GstEncodingContainerProfile *profile = m_recorderControl->videoProfile(); - g_object_set (G_OBJECT(m_camerabin), - "video-profile", - profile, - NULL); - gst_encoding_profile_unref(profile); -#endif - setAudioCaptureCaps(); setupCaptureResolution(); |