pipe_str = g_strdup_printf ("audiotestsrc timestamp-offset=%" G_GUINT64_FORMAT
" ! audio/x-raw,rate=44100"
- " ! audioconvert ! vorbisenc ! fakesink", TIMESTAMP_OFFSET);
+ " ! audioconvert ! vorbisenc ! fakesink name=sink", TIMESTAMP_OFFSET);
bin = gst_parse_launch (pipe_str, &error);
fail_unless (bin != NULL, "Error parsing pipeline: %s",
/* get the pad */
{
- GstElement *sink = gst_bin_get_by_name (GST_BIN (bin), "fakesink0");
+ GstElement *sink = gst_bin_get_by_name (GST_BIN (bin), "sink");
fail_unless (sink != NULL, "Could not get fakesink out of bin");
pad = gst_element_get_static_pad (sink, "sink");
GError *error = NULL;
pipe_str = g_strdup_printf ("audiotestsrc"
- " ! audio/x-raw,rate=44100 ! audioconvert ! vorbisenc ! fakesink");
+ " ! audio/x-raw,rate=44100 ! audioconvert ! vorbisenc "
+ " ! fakesink name=sink");
bin = gst_parse_launch (pipe_str, &error);
fail_unless (bin != NULL, "Error parsing pipeline: %s",
/* get the pad */
{
- GstElement *sink = gst_bin_get_by_name (GST_BIN (bin), "fakesink0");
+ GstElement *sink = gst_bin_get_by_name (GST_BIN (bin), "sink");
fail_unless (sink != NULL, "Could not get fakesink out of bin");
pad = gst_element_get_static_pad (sink, "sink");
/* make audioencoder act sufficiently pedantic */
pipe_str = g_strdup_printf ("audiotestsrc samplesperbuffer=1024"
- " ! audio/x-raw,rate=44100" " ! audioconvert "
- " ! vorbisenc tolerance=10000000 ! fakesink");
+ " ! audio/x-raw,rate=44100 ! audioconvert "
+ " ! vorbisenc tolerance=10000000 name=enc ! fakesink name=sink");
bin = gst_parse_launch (pipe_str, &error);
fail_unless (bin != NULL, "Error parsing pipeline: %s",
/* get the pad to use to drop buffers */
{
- GstElement *sink = gst_bin_get_by_name (GST_BIN (bin), "vorbisenc0");
+ GstElement *sink = gst_bin_get_by_name (GST_BIN (bin), "enc");
fail_unless (sink != NULL, "Could not get vorbisenc out of bin");
droppad = gst_element_get_static_pad (sink, "sink");
/* get the pad */
{
- GstElement *sink = gst_bin_get_by_name (GST_BIN (bin), "fakesink0");
+ GstElement *sink = gst_bin_get_by_name (GST_BIN (bin), "sink");
fail_unless (sink != NULL, "Could not get fakesink out of bin");
pad = gst_element_get_static_pad (sink, "sink");