khronosfws/openmax_al/src/mmf_adaptation/xaseekitfadaptationmmf.c
changeset 25 6f7ceef7b1d1
parent 19 4a629bc82c5e
--- a/khronosfws/openmax_al/src/mmf_adaptation/xaseekitfadaptationmmf.c	Fri May 28 19:26:28 2010 -0500
+++ b/khronosfws/openmax_al/src/mmf_adaptation/xaseekitfadaptationmmf.c	Fri Jun 11 19:59:23 2010 -0500
@@ -1,25 +1,25 @@
 /*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:
-*
-*/
+ * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description: Seek Itf Adaptation MMF
+ *
+ */
 
+#include <glib.h>
 #include "unistd.h"
 #include "xamediaplayeradaptctxmmf.h"
 #include "xaseekitfadaptationmmf.h"
 #include "cmmfbackendengine.h"
-#include <glib.h>
 
 /*
  * XAresult XAPlayItfAdaptMMF_SetPlayState(XAAdaptationBaseCtx *bCtx, XAuint32 state)
@@ -28,10 +28,12 @@
  * XAuint32 state - Play state to be set
  * @return XAresult ret - Success value
  */
-XAresult XASeekItfAdaptMMF_SetPosition(XAAdaptationBaseCtx *bCtx, XAmillisecond pos, XAuint32 seekMode)
-{
+XAresult XASeekItfAdaptMMF_SetPosition(XAAdaptationBaseCtx *bCtx,
+        XAmillisecond pos, XAuint32 seekMode)
+    {
     XAresult ret = XA_RESULT_SUCCESS;
-    XAMediaPlayerAdaptationMMFCtx* mCtx = (XAMediaPlayerAdaptationMMFCtx*) bCtx;
+    XAMediaPlayerAdaptationMMFCtx* mCtx =
+            (XAMediaPlayerAdaptationMMFCtx*) bCtx;
 
     DEBUG_API("->XASeekItfAdaptMMF_SetPosition ");
     ret = mmf_seekitf_set_position(mCtx->mmfContext, pos);
@@ -40,24 +42,23 @@
 
     DEBUG_API("<-XASeekItfAdaptMMF_SetPosition");
     return ret;
-}
+    }
 
-XAresult XASeekItfAdaptMMF_SetLoop(XAAdaptationBaseCtx *bCtx, XAboolean loopEnable,
-                                    XAmillisecond startPos, XAmillisecond endPos)
+XAresult XASeekItfAdaptMMF_SetLoop(XAAdaptationBaseCtx *bCtx,
+        XAboolean loopEnable, XAmillisecond startPos, XAmillisecond endPos)
     {
-        XAresult ret = XA_RESULT_SUCCESS;
-        XAMediaPlayerAdaptationMMFCtx* mCtx = (XAMediaPlayerAdaptationMMFCtx*) bCtx;
-
-        DEBUG_API("->XASeekItfAdaptMMF_SetLoop ");
+    XAresult ret = XA_RESULT_SUCCESS;
+    XAMediaPlayerAdaptationMMFCtx* mCtx =
+            (XAMediaPlayerAdaptationMMFCtx*) bCtx;
 
-        /* bCtx and parameter pointer validation happens in the calling function.
-         * We don't need to repeat it here*/
-        ret = mmf_seekitf_set_repeats(mCtx->mmfContext, loopEnable);
-        
-        ret = mmf_seekitf_set_playwindow(mCtx->mmfContext, startPos, endPos);
-        
-        
-        
-        DEBUG_API("<-XASeekItfAdaptMMF_SetLoop");
-        return ret;
+    DEBUG_API("->XASeekItfAdaptMMF_SetLoop ");
+
+    /* bCtx and parameter pointer validation happens in the calling function.
+     * We don't need to repeat it here*/
+    ret = mmf_seekitf_set_repeats(mCtx->mmfContext, loopEnable);
+
+    ret = mmf_seekitf_set_playwindow(mCtx->mmfContext, startPos, endPos);
+
+    DEBUG_API("<-XASeekItfAdaptMMF_SetLoop");
+    return ret;
     }