[gstreamermm] Gst::Caps: minor update
- From: Marcin Kolny <mkolny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm] Gst::Caps: minor update
- Date: Wed, 16 Sep 2015 22:09:25 +0000 (UTC)
commit 9d86136a79aba29d19cd4700dc81b9f159a18ea9
Author: Marcin Kolny <marcin kolny gmail com>
Date: Wed Sep 16 22:07:26 2015 +0000
Gst::Caps: minor update
* gstreamer/src/caps.hg: use new Gst::Structure constructor in
create() method.
gstreamer/src/caps.hg | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gstreamer/src/caps.hg b/gstreamer/src/caps.hg
index 47cfac2..593232b 100644
--- a/gstreamer/src/caps.hg
+++ b/gstreamer/src/caps.hg
@@ -29,8 +29,6 @@ namespace Gst
_WRAP_ENUM(CapsIntersectMode, GstCapsIntersectMode, NO_GTYPE)
-class Structure;
-
/** Structure describing sets of media formats.
* Caps (capabilities) are lightweight refcounted objects describing media types.
*
@@ -296,9 +294,8 @@ Glib::RefPtr<Gst::Caps> Caps::create_simple(const Glib::ustring& media_type, Dat
our own GstStructure here and append it to the GstCaps.
*/
Glib::RefPtr<Gst::Caps> result(reinterpret_cast<Gst::Caps*>(gst_caps_new_empty()));
- GstStructure* gst_struct = gst_structure_new_empty(media_type.c_str());
- gst_caps_append_structure(Glib::unwrap(result), gst_struct);
- result->set_simple(data...);
+ Gst::Structure gst_struct(media_type, data...);
+ result->append_structure(gst_struct);
return result;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]