dataurisrc: fix docs and unit test

This commit is contained in:
Wim Taymans 2012-02-24 12:53:52 +01:00
parent 1859802d9d
commit 8743905721
2 changed files with 4 additions and 4 deletions

View file

@ -27,7 +27,7 @@
* <refsect2>
* <title>Example launch line</title>
* |[
* gst-launch-0.10 -v dataurisrc uri="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAfElEQVQ4je2MwQnAIAxFgziA4EnczIsO4MEROo/gzZWc4xdTbe1R6LGRR74heYS7iKElzfcMiRnt4hf8gk8EayB6luefue/HzlJfCA50XsNjYRxprZmenXNIKSGEsC+QUqK1hhgj521BzhnWWiilUGvdF5RS4L2HMQZCCJy8sHMm2TYdJAAAAABJRU5ErkJggg==" ! pngdec ! ffmpegcolorspace ! freeze ! ffmpegcolorspace ! autovideosink
* gst-launch-0.10 -v dataurisrc uri="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAfElEQVQ4je2MwQnAIAxFgziA4EnczIsO4MEROo/gzZWc4xdTbe1R6LGRR74heYS7iKElzfcMiRnt4hf8gk8EayB6luefue/HzlJfCA50XsNjYRxprZmenXNIKSGEsC+QUqK1hhgj521BzhnWWiilUGvdF5RS4L2HMQZCCJy8sHMm2TYdJAAAAABJRU5ErkJggg==" ! pngdec ! videoconvert ! freeze ! videoconvert ! autovideosink
* ]| This pipeline displays a small 16x16 PNG image from the data URI.
* </refsect2>
*/

View file

@ -24,7 +24,7 @@
/* sine wave encoded in ogg/vorbis, created with:
* gst-launch-0.10 audiotestsrc num-buffers=110 ! audioconvert ! \
* audio/x-raw-float,channels=1 ! vorbisenc ! oggmux ! \
* audio/x-raw,channels=1 ! vorbisenc ! oggmux ! \
* filesink location=sine.ogg
* and then encoded to base64 */
const gchar data_uri[] = "data:audio/ogg;base64,"
@ -174,11 +174,11 @@ GST_START_TEST (test_playbin2)
GstElement *playbin, *sink;
int loops = 2;
playbin = gst_element_factory_make ("playbin2", NULL);
playbin = gst_element_factory_make ("playbin", NULL);
sink = gst_element_factory_make ("fakesink", NULL);
if (playbin == NULL || sink == NULL) {
GST_WARNING ("skipping test, no playbin2 or fakesink element(s)");
GST_WARNING ("skipping test, no playbin or fakesink element(s)");
return;
}