--- a/gst_plugins_base/gst/playback/test6.c Tue Aug 31 15:30:33 2010 +0300
+++ b/gst_plugins_base/gst/playback/test6.c Wed Sep 01 12:16:41 2010 +0100
@@ -16,15 +16,8 @@
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-#ifdef HAVE_UNISTD_H
#include <unistd.h>
-#endif
-#ifdef HAVE_STDLIB_H
#include <stdlib.h> /* exit */
-#endif
#include <gst/gst.h>
static void
@@ -37,7 +30,7 @@
fakesink = gst_element_factory_make ("fakesink", NULL);
gst_bin_add (GST_BIN (pipeline), fakesink);
- sinkpad = gst_element_get_static_pad (fakesink, "sink");
+ sinkpad = gst_element_get_pad (fakesink, "sink");
if (GST_PAD_LINK_FAILED (gst_pad_link (new_pad, sinkpad))) {
g_warning ("Failed to link %s:%s to %s:%s", GST_DEBUG_PAD_NAME (new_pad),
GST_DEBUG_PAD_NAME (sinkpad));