Removed debug prints.
authorMrinmayee Hingolikar <mrinmayee@ti.com>
Mon, 25 Mar 2013 18:11:21 +0000 (23:41 +0530)
committerKarthik Ramanan <a0393906@ti.com>
Thu, 1 Jan 1970 01:18:10 +0000 (01:18 +0000)
src/gst-controller.c
src/gui.c

index 37d63714b59ccda50c3d0973506abdfb24b621be..94e716ee781f927e107ed4e0f05e52c7b9861b91 100644 (file)
@@ -231,8 +231,6 @@ gboolean DualDecode_pauseMedia (Pipeline *pipePtr)
                                 NULL,
                                 NULL,
                                 TIMEOUT);
-        g_print ("GET STATE RETURNED %s\n", 
-                  gst_element_state_change_return_get_name (stateReturn));
     
     }    
     return ret;
@@ -243,7 +241,6 @@ gboolean DualDecode_resumeMedia (Pipeline *pipePtr)
     gboolean ret = TRUE;                                                        
     if (!gst_element_set_state (pipePtr->pipe, GST_STATE_PLAYING))                
         ret = FALSE;                                                            
-    g_print ("IN RESUME MEDIA\n");                                                                            
     return ret;                                                                 
 } 
 
@@ -268,13 +265,11 @@ gboolean DualDecode_setLogFunction (Pipeline *pipePtr, LogFunc func, gpointer da
 GstState DualDecode_getMediaState(Pipeline *pipePtr)
 {
        GstState state, pending;
-    g_print ("IN GET MEDIA STATE ENTRY\n");
        if (GST_STATE_CHANGE_SUCCESS != gst_element_get_state(
                pipePtr->pipe, &state, &pending, GST_CLOCK_TIME_NONE)) {
                /*TODO : a bug here*/
                g_printerr ("No state in GstElement\n");
        } 
-    g_print ("EXITING FROM GET MEDIA STATE\n");
        return state;
 }
 
@@ -312,7 +307,6 @@ gboolean DualDecode_getMediaPosition (Pipeline *pipePtr, gdouble *seekScaleValue
 void DualDecode_setPipelineSink (Pipeline *pipePtr, GstElement *sink0, 
                                  GstElement *sink1)
 {
-    g_print ("IN SET PIPE IN SINGLE MODE");
     attachPipeElements (pipePtr, sink0, sink1);
 }
 
@@ -320,7 +314,6 @@ gboolean DualDecode_playMedia (Pipeline *pipePtr, gchar *filename, gint64 positi
 {                                                                               
     gboolean ret = TRUE;                                                        
 
-    g_print ("IN PLAYMEDIA2");                                                                                
     g_object_set (G_OBJECT (pipePtr->pipe),"uri", filename,NULL);                 
     gst_element_set_state (pipePtr->pipe, GST_STATE_NULL);                      
     gst_element_set_state (pipePtr->pipe, GST_STATE_PLAYING);                   
@@ -427,11 +420,9 @@ gboolean DualDecode_dualToSingle (Pipeline **pipes,GstElement * otherWindowSink,
                                                                                 
     if (!g_strcmp0 (name, "fsink0")){                                   
                                                                                 
-        g_print ("NAME IS fsink0\n");                                   
         gst_element_link (queue0, fsink);                               
     }                                                                     
     else if (!g_strcmp0 (name, "fsink1")){                                
-        g_print ("NAME IS fsink1\n");                                     
         fsink0 = gst_bin_get_by_name (GST_BIN (bin2), "fsink0");          
         queue1 = gst_bin_get_by_name (GST_BIN (bin2), "q1");              
         gst_element_unlink (queue1, fsink0);                              
index 2acf7af3d8f18285ab3f876e4dcfd3162947f0c0..4787236fabbdf82aa647cc0a03ea6ddd1b3e1a42 100644 (file)
--- a/src/gui.c
+++ b/src/gui.c
@@ -208,16 +208,13 @@ static gboolean cbSeekValueChanged (GtkWidget *widget, gpointer data)
     gint64 duration = 0;
     gint seekPoint = 0;
     gdouble percent = gtk_range_get_value ((GtkRange *)widget);
-    g_print ("PERCENT %f\n", percent);
     GUIWindow *thisWindow = (GUIWindow *)data; 
 
-    g_print ("IN SEEK VALUE CHANGED\n");
     if (DECODE_MODE_SINGLE == decodeMode) {
                                                                                     
         gst_element_query_duration (pipes[DECODER_INDEX_SINGLE]->pipe,
                                     &format,&duration);
         seekPoint = (gint64) (duration * percent/ (gdouble)100);
-        g_print ("SEEK POINT %d\n", seekPoint);
         ret = DualDecode_seekMedia (pipes[DECODER_INDEX_SINGLE], seekPoint);
     }
     else {                                                                      
@@ -329,7 +326,6 @@ static gboolean cbPlayClicked (GtkWidget *widget, gpointer data)
                        }
             else if (GST_STATE_READY == 
                       DualDecode_getMediaState (pipes[DECODER_INDEX_SINGLE])) {
-               g_print ("\nPipeline state is READY\n");
                DualDecode_setPipelineSink (pipes[DECODER_INDEX_SINGLE], 
                                                  window[DECODER_INDEX_SINGLE]->sink, 
                                                  NULL); 
@@ -429,13 +425,11 @@ static gboolean cbForwardClicked (GtkWidget *widget, gpointer data)
     GUIWindow *thisWindow = (GUIWindow *)data;               
     gdouble percent = gtk_range_get_value ((GtkRange *) (thisWindow->seekScale));                   
                                                                                 
-    g_print ("IN FORWARD CLICKED\n");                                        
     if (DECODE_MODE_SINGLE == decodeMode) {                                      
                                                                                 
         gst_element_query_duration (pipes[DECODER_INDEX_SINGLE]->pipe,          
                                     &format,&duration);                         
         seekPoint =  (duration * percent/ (gdouble)100)+ FORWARD;                
-        g_print ("SEEK POINT %"G_GINT64_FORMAT"\n", seekPoint);                                 
         ret = DualDecode_seekMedia (pipes[DECODER_INDEX_SINGLE], seekPoint);     
     }                                                                           
     else {                                                                       
@@ -443,7 +437,6 @@ 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 %"G_GINT64_FORMAT"\n", seekPoint);            
             ret = DualDecode_seekMedia (pipes[DECODER_INDEX_SINGLE], seekPoint); 
         }                                                                       
         else {                                                                  
@@ -465,13 +458,11 @@ static gboolean cbRewindClicked (GtkWidget *widget, gpointer data)
     GUIWindow *thisWindow = (GUIWindow *)data;                                  
     gdouble percent = gtk_range_get_value ((GtkRange *) (thisWindow->seekScale));
                                                                                 
-    g_print ("IN FORWARD CLICKED\n");                                           
     if (DECODE_MODE_SINGLE == decodeMode) {                                      
                                                                                 
         gst_element_query_duration (pipes[DECODER_INDEX_SINGLE]->pipe,          
                                     &format,&duration);                         
         seekPoint =  (duration * percent/ (gdouble)100) - REWIND;               
-        g_print ("SEEK POINT %"G_GINT64_FORMAT"\n", seekPoint);
         seekPoint = (seekPoint < 0) ? 0 : seekPoint;                                 
         ret = DualDecode_seekMedia (pipes[DECODER_INDEX_SINGLE], seekPoint);     
     }                                                                           
@@ -480,7 +471,6 @@ 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 %"G_GINT64_FORMAT"\n", seekPoint);
             seekPoint = (seekPoint < 0) ? 0 : seekPoint;                             
             ret = DualDecode_seekMedia (pipes[DECODER_INDEX_SINGLE], seekPoint); 
         }                                                                       
@@ -557,13 +547,11 @@ static gboolean cbWindowClosed (GtkWidget *widget, gpointer data){
 }
 
 static gboolean cbHelpClicked (GtkWidget *widget, gpointer data){
-    g_print ("HELP BUTTON CLICKED\n");
     gtk_widget_show (helpWindow);
     return TRUE;
 }
 
 static gboolean cbHelpClosed (GtkWidget *widget, gpointer data){
-    g_print ("IN HELP CLOSED\n");
     gtk_widget_hide (helpWindow);
     return TRUE;
 }
@@ -932,7 +920,6 @@ static GtkWidget *createHelpWindow ()
     /*Connect signal to close button handler*/
     g_signal_connect(G_OBJECT (helpWindow), "delete-event", 
       G_CALLBACK (cbHelpClosed), NULL);
-    g_print ("RETURNING FROM CREATE HELP\n");
     return helpWindow;
 }