projects
/
harmattan
/
cameraplus
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3806e1
)
Return NULL if we cannot create any elements
author
Mohammed Sameer
<msameer@foolab.org>
Fri, 26 Jul 2013 01:57:12 +0000
(
04:57
+0300)
committer
Mohammed Sameer
<msameer@foolab.org>
Fri, 26 Jul 2013 01:57:12 +0000
(
04:57
+0300)
lib/qtcamanalysisbin.cpp
patch
|
blob
|
history
diff --git
a/lib/qtcamanalysisbin.cpp
b/lib/qtcamanalysisbin.cpp
index
f8d357f
..
332e2b1
100644
(file)
--- a/
lib/qtcamanalysisbin.cpp
+++ b/
lib/qtcamanalysisbin.cpp
@@
-134,6
+134,12
@@
QtCamAnalysisBinPrivate *qt_cam_analysis_bin_create(const QStringList& factories
added << element;
}
+ if (added.isEmpty()) {
+ gst_object_unref (bin);
+
+ return 0;
+ }
+
if (added.size() > 1) {
for (int x = 1; x < added.count(); x++) {
GstElement *elem = added[x];