mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
use macros to cast; fix probe warning
Original commit message from CVS: use macros to cast; fix probe warning
This commit is contained in:
parent
487a4d94ec
commit
aedd023474
1 changed files with 3 additions and 3 deletions
|
@ -726,9 +726,9 @@ _wrap_gst_probe_perform(PyGBoxed *self, PyObject *args, PyObject *kwargs)
|
||||||
/* FIXME: GstBuffer and GstEvent are not really "subclasses" so
|
/* FIXME: GstBuffer and GstEvent are not really "subclasses" so
|
||||||
we hardcode checks for them here by hand. Ugh. */
|
we hardcode checks for them here by hand. Ugh. */
|
||||||
if (pyg_boxed_check(py_data, GST_TYPE_EVENT))
|
if (pyg_boxed_check(py_data, GST_TYPE_EVENT))
|
||||||
data = pyg_boxed_get(py_data, GstEvent);
|
data = GST_DATA(pyg_boxed_get(py_data, GstEvent));
|
||||||
if (pyg_boxed_check(py_data, GST_TYPE_BUFFER))
|
if (pyg_boxed_check(py_data, GST_TYPE_BUFFER))
|
||||||
data = pyg_boxed_get(py_data, GstBuffer);
|
data = GST_DATA(pyg_boxed_get(py_data, GstBuffer));
|
||||||
if (pyg_boxed_check(py_data, GST_TYPE_DATA))
|
if (pyg_boxed_check(py_data, GST_TYPE_DATA))
|
||||||
data = pyg_boxed_get(py_data, GstData);
|
data = pyg_boxed_get(py_data, GstData);
|
||||||
|
|
||||||
|
@ -750,7 +750,7 @@ _wrap_gst_plugin_get_version(PyGObject *self)
|
||||||
gint i = 0;
|
gint i = 0;
|
||||||
gint count = 0;
|
gint count = 0;
|
||||||
|
|
||||||
version = gst_plugin_get_version((GstPlugin *) self->obj);
|
version = gst_plugin_get_version(GST_PLUGIN(self->obj));
|
||||||
items = g_strsplit(version, ".", 4);
|
items = g_strsplit(version, ".", 4);
|
||||||
for (p = items; *p; ++p) ++count;
|
for (p = items; *p; ++p) ++count;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue