Fixed gint64 format specifier to G_GINT64_FORMAT.
authorAnkur Agarwal <ankuragarwal@ti.com>
Thu, 21 Mar 2013 16:08:53 +0000 (21:38 +0530)
committerKarthik Ramanan <a0393906@ti.com>
Thu, 1 Jan 1970 01:18:01 +0000 (01:18 +0000)
src/gst-controller.c
src/gui.c

index d6016e927b830760a9d474c4aec780b52635b9c3..37d63714b59ccda50c3d0973506abdfb24b621be 100644 (file)
@@ -282,7 +282,7 @@ GstState DualDecode_getMediaState(Pipeline *pipePtr)
 gboolean DualDecode_getMediaPosition (Pipeline *pipePtr, gdouble *seekScaleValue,
                                       gchar **timeLabelText)
 {
-       gboolean ret = TRUE;
+    gboolean ret = TRUE;
     gint64 position = 0, duration = 0;
     gint64 pos[3], dur[3];
     GstFormat format = GST_FORMAT_TIME; 
@@ -292,7 +292,9 @@ gboolean DualDecode_getMediaPosition (Pipeline *pipePtr, gdouble *seekScaleValue
        
         getTime (pos, position);
         getTime (dur, duration); 
-        *timeLabelText = g_strdup_printf ("%ld:%ld:%ld/%ld:%ld:%ld", 
+        *timeLabelText = g_strdup_printf ("%" G_GINT64_FORMAT ":\
+        %" G_GINT64_FORMAT ":%" G_GINT64_FORMAT "/\
+        %" G_GINT64_FORMAT ":%" G_GINT64_FORMAT ":%" G_GINT64_FORMAT "", 
         pos[HH], pos[MM], pos[SS], dur[HH], dur[MM], dur[SS]);
         if (duration)
             *seekScaleValue = (gdouble)position/ (gdouble)duration * 100;
index a5dad615ba4f46bd8060c780e4abdc5053c1849e..2acf7af3d8f18285ab3f876e4dcfd3162947f0c0 100644 (file)
--- a/src/gui.c
+++ b/src/gui.c
@@ -435,7 +435,7 @@ static gboolean cbForwardClicked (GtkWidget *widget, gpointer data)
         gst_element_query_duration (pipes[DECODER_INDEX_SINGLE]->pipe,          
                                     &format,&duration);                         
         seekPoint =  (duration * percent/ (gdouble)100)+ FORWARD;                
-        g_print ("SEEK POINT %ld\n", seekPoint);                                 
+        g_print ("SEEK POINT %"G_GINT64_FORMAT"\n", seekPoint);                                 
         ret = DualDecode_seekMedia (pipes[DECODER_INDEX_SINGLE], seekPoint);     
     }                                                                           
     else {                                                                       
@@ -443,7 +443,7 @@ static gboolean cbForwardClicked (GtkWidget *widget, gpointer data)
             gst_element_query_duration (pipes[DECODER_INDEX_SINGLE]->pipe,      
                                         &format, &duration);                     
             seekPoint =  (duration * percent/ (gdouble)100) + FORWARD;
-            g_print ("SEEK POINT %ld\n", seekPoint);            
+            g_print ("SEEK POINT %"G_GINT64_FORMAT"\n", seekPoint);            
             ret = DualDecode_seekMedia (pipes[DECODER_INDEX_SINGLE], seekPoint); 
         }                                                                       
         else {                                                                  
@@ -471,7 +471,7 @@ static gboolean cbRewindClicked (GtkWidget *widget, gpointer data)
         gst_element_query_duration (pipes[DECODER_INDEX_SINGLE]->pipe,          
                                     &format,&duration);                         
         seekPoint =  (duration * percent/ (gdouble)100) - REWIND;               
-        g_print ("SEEK POINT %ld\n", seekPoint);
+        g_print ("SEEK POINT %"G_GINT64_FORMAT"\n", seekPoint);
         seekPoint = (seekPoint < 0) ? 0 : seekPoint;                                 
         ret = DualDecode_seekMedia (pipes[DECODER_INDEX_SINGLE], seekPoint);     
     }                                                                           
@@ -480,7 +480,7 @@ static gboolean cbRewindClicked (GtkWidget *widget, gpointer data)
             gst_element_query_duration (pipes[DECODER_INDEX_SINGLE]->pipe,      
                                         &format, &duration);                    
             seekPoint =  (duration * percent/ (gdouble)100) - REWIND;          
-            g_print ("SEEK POINT %ld\n", seekPoint);
+            g_print ("SEEK POINT %"G_GINT64_FORMAT"\n", seekPoint);
             seekPoint = (seekPoint < 0) ? 0 : seekPoint;                             
             ret = DualDecode_seekMedia (pipes[DECODER_INDEX_SINGLE], seekPoint); 
         }