meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
maemo:gsthello [2009/08/19 16:41] – mgynther | maemo: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: |
+ | < | ||
+ | gcc -Wall $(pkg-config --cflags --libs gstreamer-0.10) filename.c -o filename | ||
+ | </ | ||
<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, | + | |
- | strcat(path, | + | strcpy(path, |
+ | strcat(path, | ||
g_object_set (G_OBJECT (bin), " | g_object_set (G_OBJECT (bin), " | ||
Line 127: | Line 131: | ||
- | Compiling: gcc -Wall $(pkg-config --cflags --libs gstreamer-0.10) filename.c -o filename | + | Compiling: |
+ | < | ||
+ | gcc -Wall $(pkg-config --cflags --libs gstreamer-0.10) filename.c -o filename | ||
+ | </ | ||
<code c> | <code c> | ||
Line 178: | Line 184: | ||
GstElement *decoder = (GstElement *) data; | GstElement *decoder = (GstElement *) data; | ||
- | | + | g_print (" |
- | | + | |
sinkpad = gst_element_get_static_pad (decoder, " | sinkpad = gst_element_get_static_pad (decoder, " |