summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gsttools/qgstcodecsinfo.cpp2
-rw-r--r--src/plugins/gstreamer/camerabin/camerabinsession.cpp20
2 files changed, 12 insertions, 10 deletions
diff --git a/src/gsttools/qgstcodecsinfo.cpp b/src/gsttools/qgstcodecsinfo.cpp
index a05ee92aa..ca43d489b 100644
--- a/src/gsttools/qgstcodecsinfo.cpp
+++ b/src/gsttools/qgstcodecsinfo.cpp
@@ -106,7 +106,7 @@ void QGstCodecsInfo::updateCodecs(ElementType elementType)
QSet<QByteArray> fieldsToAdd;
fieldsToAdd << "mpegversion" << "layer" << "layout" << "raversion"
- << "wmaversion" << "wmvversion" << "variant";
+ << "wmaversion" << "wmvversion" << "variant" << "systemstream";
GList *element = elements;
while (element) {
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();