[gst-cvs] gst-plugins-bad: rtmpsrc: Add some braces to improve readability

Sebastian Dröge slomo at kemper.freedesktop.org
Sun Jun 6 06:32:54 PDT 2010


Module: gst-plugins-bad
Branch: master
Commit: 370a5049ba8b57023f0f40da1d8a801aa60735b1
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=370a5049ba8b57023f0f40da1d8a801aa60735b1

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Sun Jun  6 15:32:39 2010 +0200

rtmpsrc: Add some braces to improve readability

---

 ext/rtmp/gstrtmpsrc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ext/rtmp/gstrtmpsrc.c b/ext/rtmp/gstrtmpsrc.c
index 91ce4e3..2a3f369 100644
--- a/ext/rtmp/gstrtmpsrc.c
+++ b/ext/rtmp/gstrtmpsrc.c
@@ -340,9 +340,9 @@ gst_rtmp_src_create (GstPushSrc * pushsrc, GstBuffer ** buffer)
   while (todo > 0) {
     read = RTMP_Read (src->rtmp, (char *) data, todo);
 
-    if (G_UNLIKELY (read == 0 && todo == size))
+    if (G_UNLIKELY (read == 0 && todo == size)) {
       goto eos;
-    else if (G_UNLIKELY (read == 0)) {
+    } else if (G_UNLIKELY (read == 0)) {
       GST_BUFFER_SIZE (buf) -= todo;
       todo = 0;
       break;





More information about the Gstreamer-commits mailing list