diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo@collabora.com> | 2012-09-10 18:27:21 -0300 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo@collabora.com> | 2012-09-10 18:27:21 -0300 |
commit | af1772797f35fe53203c52c22393f5d6e5f3a968 (patch) | |
tree | 925bb9e628178a94aa422f712792f94bfe0938c9 | |
parent | dfd38702ca2fca26449c29c2dd656ab1d0a6d7b9 (diff) |
Message reordering
Some message cosmetics.
Fix loging on slow/fast rendering path selection logic.
-rw-r--r-- | sys/android/gstvidroidsink.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/sys/android/gstvidroidsink.c b/sys/android/gstvidroidsink.c index 75a72886f..82c4a965a 100644 --- a/sys/android/gstvidroidsink.c +++ b/sys/android/gstvidroidsink.c @@ -378,7 +378,7 @@ gst_vidroidbuffer_destroy (GstViDroidBuffer * vidroidbuffer) return; NO_SINK: - GST_WARNING ("no sink found"); + GST_WARNING ("No sink found"); return; } @@ -405,7 +405,7 @@ gst_vidroidbuffer_finalize (GstViDroidBuffer * vidroidbuffer) return; NO_SINK: - GST_WARNING ("no sink found"); + GST_WARNING ("No sink found"); return; } @@ -575,7 +575,7 @@ gst_vidroidsink_buffer_alloc (GstBaseSink * bsink, guint64 offset, if (G_LIKELY (gst_caps_is_equal (caps, vidroidsink->current_caps))) { GST_LOG_OBJECT (vidroidsink, - "buffer alloc for same last_caps, reusing caps"); + "Buffer alloc for same last_caps, reusing caps"); intersection = gst_caps_ref (caps); image_format = vidroidsink->format; width = GST_VIDEO_SINK_WIDTH (vidroidsink); @@ -584,14 +584,14 @@ gst_vidroidsink_buffer_alloc (GstBaseSink * bsink, guint64 offset, goto REUSE_LAST_CAPS; } - GST_DEBUG_OBJECT (vidroidsink, "buffer alloc requested size %d with caps %" + GST_DEBUG_OBJECT (vidroidsink, "Buffer alloc requested size %d with caps %" GST_PTR_FORMAT ", intersecting with our caps %" GST_PTR_FORMAT, size, caps, vidroidsink->current_caps); /* Check the caps against our current caps */ intersection = gst_caps_intersect (vidroidsink->current_caps, caps); - GST_DEBUG_OBJECT (vidroidsink, "intersection in buffer alloc returned %" + GST_DEBUG_OBJECT (vidroidsink, "Intersection in buffer alloc returned %" GST_PTR_FORMAT, intersection); if (gst_caps_is_empty (intersection)) { @@ -929,16 +929,20 @@ gst_vidroidsink_init_egl_exts (GstViDroidSink * vidroidsink) */ vidroidsink->rendering_path = GST_VIDROIDSINK_RENDER_FAST; GST_INFO_OBJECT (vidroidsink, - "Have needed exts. Enabling fast rendering path"); + "Have needed extensions. Enabling fast rendering path"); return; - } else + } else { GST_WARNING_OBJECT (vidroidsink, "Extension check passed but slow rendering path being forced"); + goto SLOW_PATH_SELECTED; + } #endif MISSING_EXTS: GST_WARNING_OBJECT (vidroidsink, - "Extensions missing. Using slow rendering path"); + "Extensions missing. Can't use fast rendering path"); +SLOW_PATH_SELECTED: + GST_INFO_OBJECT (vidroidsink, "Using slow rendering path"); return; } |