[gstreamermm: 22/167] fixed caps
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm: 22/167] fixed caps
- Date: Tue, 3 Sep 2013 19:20:56 +0000 (UTC)
commit 380fc5562c7387f808289b692de0f520c63c15a0
Author: Marcin Kolny at Flytronic <marcin kolny flytronic pl>
Date: Wed Jul 24 16:55:15 2013 +0200
fixed caps
gstreamer/src/caps.ccg | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gstreamer/src/caps.ccg b/gstreamer/src/caps.ccg
index a3cb403..50efaef 100644
--- a/gstreamer/src/caps.ccg
+++ b/gstreamer/src/caps.ccg
@@ -42,7 +42,7 @@ Glib::RefPtr<Gst::Caps> Caps::create_any()
Glib::RefPtr<Gst::Caps> Caps::create_simple(const Glib::ustring& media_type)
{
Glib::RefPtr<Gst::Caps> result = Glib::wrap(gst_caps_new_empty());
- GstStructure* gst_struct = gst_structure_empty_new(media_type.c_str());
+ GstStructure* gst_struct = gst_structure_new_empty(media_type.c_str());
gst_caps_append_structure(Glib::unwrap(result), gst_struct);
return result;
}
@@ -83,8 +83,7 @@ void Caps::merge_structure(Structure& structure)
void
Caps::set_simple(const Glib::ustring& name, const Glib::ValueBase& value)
{
- g_return_if_fail((this->gobj()->structs->len == 1)); // Not simple
- g_return_if_fail (g_atomic_int_get(&(this->gobj())->refcount) == 1); // IS_WRITABLE(caps) fails
+ g_return_if_fail (g_atomic_int_get(&(this->gobj())->mini_object.refcount) == 1); // IS_WRITABLE(caps) fails
//The result of gst_caps_get_structure() should not be modified, according to
//its documentation, but we are reimplementing gst_caps_set_simple() which
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]