diff options
author | Diane Trout <diane@ghic.org> | 2015-04-07 21:15:39 -0700 |
---|---|---|
committer | Diane Trout <diane@ghic.org> | 2015-04-07 21:15:39 -0700 |
commit | c994209573c5b07e71276938aae212b40943f076 (patch) | |
tree | aeb95b8c50d6ec3f61688b94fac75d8f78b08079 | |
parent | 53220ba158b74cf5d5bf27e03f7892a6629a8d50 (diff) |
Create an empty structure to pass to gst_message_new_application if we don't have a valid one.
When passed a NULL structure gst_message_new_application fails with
the following error. GStreamer-CRITICAL **:
gst_message_new_application: assertion 'structure != NULL' failed
-rw-r--r-- | src/QGst/message.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/QGst/message.cpp b/src/QGst/message.cpp index a252562..3e7bb56 100644 --- a/src/QGst/message.cpp +++ b/src/QGst/message.cpp @@ -348,7 +348,7 @@ void StreamStatusMessage::setStreamStatusObject(const QGlib::Value & obj) ApplicationMessagePtr ApplicationMessage::create(const ObjectPtr & source, const Structure & structure) { - GstStructure *s = structure.isValid() ? gst_structure_copy(structure) : NULL; + GstStructure *s = structure.isValid() ? gst_structure_copy(structure) : gst_structure_new_empty("null"); return ApplicationMessagePtr::wrap(gst_message_new_application(source, s), false); } |