[Phonehome-commits] r127 - trunk/client/src

pamadio at garage.maemo.org pamadio at garage.maemo.org
Mon Oct 27 21:37:28 EET 2008


Author: pamadio
Date: 2008-10-27 21:37:28 +0200 (Mon, 27 Oct 2008)
New Revision: 127

Modified:
   trunk/client/src/dsk_mgr.c
Log:
debug

Modified: trunk/client/src/dsk_mgr.c
===================================================================
--- trunk/client/src/dsk_mgr.c	2008-10-27 19:02:38 UTC (rev 126)
+++ trunk/client/src/dsk_mgr.c	2008-10-27 19:37:28 UTC (rev 127)
@@ -97,17 +97,12 @@
   struct tm *now_tm=localtime(&now);
 
   strftime(now_snt,sizeof(now_snt),"%F %T",now_tm);
-
-
   g_print("[%s] %s",now_snt,snt);
 
   if(log_debug_flag!=TRUE) {
     return;
   }
 
-  
-  
-
   fh=fopen(TMP_DEBUG_FILE,"a");
   if(fh==NULL){
     g_print( "Problem appending to  %s: %s\n", TMP_DEBUG_FILE,strerror( errno ));
@@ -341,6 +336,7 @@
 
 
 gboolean create_pipe(){
+  log_debug("create_pipe\n");
   GstElement  *camera_src, *image_sink;
   GstElement *image_queue;
   GstElement *csp_filter, *image_filter;
@@ -380,12 +376,14 @@
   
   if(!gst_element_link_filtered(camera_src, csp_filter, caps))
     {
+      log_debug("cannot link filtered camera_src,csp_filter,\n");
       return FALSE;
     }
   gst_caps_unref(caps);
 
   if(!gst_element_link_many(csp_filter, image_queue, NULL))
     {
+      log_debug("Cannot link many csp_fitler,image_queue\n");
       return FALSE;
     }
 
@@ -398,9 +396,16 @@
 			     "framerate", GST_TYPE_FRACTION, 15, 1,
 			     NULL);
   
-  if(!gst_element_link_many( image_queue, image_filter, NULL)) return FALSE;
-  if(!gst_element_link_filtered(image_filter, image_sink, caps)) return FALSE;
+  if(!gst_element_link_many( image_queue, image_filter, NULL)) {
+    log_debug("Cannot link many image_queue image_filter\n");
+    return FALSE;
+  }
 
+  if(!gst_element_link_filtered(image_filter, image_sink, caps)) {
+    log_debug("Cannot link filtered image_filter,image_sing,caps\n");
+    return FALSE;
+  }
+
   gst_caps_unref(caps);
   return TRUE;
 }



More information about the Phonehome-commits mailing list