~ubuntu-branches/ubuntu/saucy/gst0.10-python/saucy

« back to all changes in this revision

Viewing changes to gst/gstevent.override

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2011-01-22 14:16:57 UTC
  • mfrom: (1.3.5 upstream) (18.1.6 experimental)
  • Revision ID: james.westby@ubuntu.com-20110122141657-zbk0crefw35s69d6
Tags: 0.10.21-1
* New upstream stable release, "She used to be an ironhorse, twenty years ago".
  + debian/control:
    - Require GStreamer core/base >= 0.10.32.

Show diffs side-by-side

added added

removed removed

Lines of Context:
309
309
                          rate, applied_rate, pyg_enum_from_gtype (GST_TYPE_FORMAT, format),
310
310
                          start_value, stop_value, base);
311
311
}
 
312
%%
 
313
override gst_event_parse_sink_message noargs
 
314
static PyObject *
 
315
_wrap_gst_event_parse_sink_message (PyGstMiniObject *self)
 
316
{
 
317
    GstMessage *message;
 
318
 
 
319
     if (GST_EVENT_TYPE(self->obj) != GST_EVENT_SINK_MESSAGE) {
 
320
          PyErr_SetString(PyExc_TypeError, "Event is not a 'SinkMessage' event");
 
321
          return NULL;
 
322
     }
 
323
     
 
324
     gst_event_parse_sink_message (GST_EVENT(self->obj), &message);
 
325
 
 
326
     if (message)
 
327
         return pygstminiobject_new (GST_MINI_OBJECT (message));
 
328
 
 
329
     Py_INCREF(Py_None);
 
330
     return Py_None;
 
331
}