diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo@collabora.com> | 2012-05-24 10:49:49 -0400 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo@collabora.com> | 2012-08-15 01:13:35 -0400 |
commit | 5f49d4e39b48958ca71ea5aabd17f479d393a316 (patch) | |
tree | 6e97fb179212e26dfa69500492c2fd2424f1126a | |
parent | 9bd3e78c346a368b00a6128f9aec192ce8d076e8 (diff) |
WIP: Continue deborking initialization/finalize
-rw-r--r-- | sys/android/gstvidroidsink.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/android/gstvidroidsink.c b/sys/android/gstvidroidsink.c index 0d342e40c..0c37e9ba7 100644 --- a/sys/android/gstvidroidsink.c +++ b/sys/android/gstvidroidsink.c @@ -245,7 +245,7 @@ GST_BOILERPLATE_FULL (GstViDroidSink, gst_vidroidsink, GstVideoSink, vidroidbuffer->format = gst_vidroidsink_get_compat_format_from_caps (vidroidsink, caps); - if (vidroidbuffer->format == -1) { + if (vidroidbuffer->format == GST_VIDROIDSINK_IMAGE_NOFMT) { GST_WARNING_OBJECT (vidroidsink, "failed to get format from caps %" GST_PTR_FORMAT, caps); GST_ERROR_OBJECT (vidroidsink, @@ -352,14 +352,17 @@ gst_vidroidbuffer_free (GstViDroidBuffer * vidroidbuffer) * as a reference */ vidroidbuffer->width = -1; vidroidbuffer->height = -1; - gst_buffer_unref (GST_BUFFER (vidroidbuffer)); } static void -gst_vidroidbuffer_init (GstViDroidBuffer * vidroidsink, gpointer g_class) +gst_vidroidbuffer_init (GstViDroidBuffer * vidroidbuffer, gpointer g_class) { - return; + vidroidbuffer->width = 0; + vidroidbuffer->height = 0; + vidroidbuffer->size = 0; + vidroidbuffer->image = NULL; + vidroidbuffer->format = GST_VIDROIDSINK_IMAGE_NOFMT; } static void |