meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
maemo:gsthello [2009/08/19 16:41] mgynthermaemo:gsthello [2009/08/21 11:36] (current) kallonen
Line 9: Line 9:
  
  
-Compiling: gcc -Wall $(pkg-config --cflags --libs gstreamer-0.10) filename.c -o filename+Compiling:  
 +<code> 
 +gcc -Wall $(pkg-config --cflags --libs gstreamer-0.10) filename.c -o filename 
 +</code>
  
 <code c> <code c>
Line 86: Line 89:
  
   /* we set the input filename to the source element */   /* we set the input filename to the source element */
- /* string functions can be removed. then the parameter has to contain file:/// in the beginning to play a file */ + /* string functions can be removed. then the parameter has to contain 
- strcpy(path, "file:///"); +        file:/// in the beginning to play a file */ 
- strcat(path, argv[1]);+  strcpy(path, "file:///"); 
 +  strcat(path, argv[1]);
   g_object_set (G_OBJECT (bin), "uri", path, NULL);   g_object_set (G_OBJECT (bin), "uri", path, NULL);
  
Line 127: Line 131:
  
  
-Compiling: gcc -Wall $(pkg-config --cflags --libs gstreamer-0.10) filename.c -o filename +Compiling:  
 +<code> 
 +gcc -Wall $(pkg-config --cflags --libs gstreamer-0.10) filename.c -o filename 
 +</code>
 <code c> <code c>
  
Line 178: Line 184:
   GstElement *decoder = (GstElement *) data;   GstElement *decoder = (GstElement *) data;
  
-  /* We can now link this pad with the vorbis-decoder sink pad */ +  g_print ("Dynamic pad created, linking \n");
-  g_print ("Dynamic pad created, linking demuxer/decoder\n");+
  
   sinkpad = gst_element_get_static_pad (decoder, "sink");   sinkpad = gst_element_get_static_pad (decoder, "sink");