Git commit 42df5936b33000dde9c7ecd6eb9206ae549933a7 by Jonathan Thomas.
Committed on 14/09/2011 at 23:24.
Pushed by jmthomas into branch 'master'.
QGst::Caps::fromString() can return null if no caps are found for a particular string.
Check this return value, rather than assuming it works and crashing.
Git commit 42df5936b33000d de9c7ecd6eb9206 ae549933a7 by Jonathan Thomas.
Committed on 14/09/2011 at 23:24.
Pushed by jmthomas into branch 'master'.
QGst::Caps: :fromString( ) can return null if no caps are found for a particular string.
Check this return value, rather than assuming it works and crashing.
CCMAIL:<email address hidden>
M +1 -1 utils/qapt- gst-helper/ GstMatcher. cpp
http:// commits. kde.org/ libqapt/ 42df5936b33000d de9c7ecd6eb9206 ae549933a7
diff --git a/utils/ qapt-gst- helper/ GstMatcher. cpp b/utils/ qapt-gst- helper/ GstMatcher. cpp qapt-gst- helper/ GstMatcher. cpp qapt-gst- helper/ GstMatcher. cpp :GstMatcher( const QStringList &values)
index a1a4347..6527571 100644
--- a/utils/
+++ b/utils/
@@ -89,7 +89,7 @@ GstMatcher:
}
- if (caps->isEmpty()) {
+ if (!caps || caps->isEmpty()) {
}