Gstreamer con visual C ++ express 2010 - tutorial 1

Soy nuevo en Gstreamer y tengo problemas al compilar el tutorial 1 de Gstreamer. Estoy usando Windows 7 64 bit con visual c ++ express 2010, y Gstreamer SDK 2012.11 32 bits (descargado desde aquí). Aquí está el código:

#include "stdafx.h"
#include <gst/gst.h>

int main(int argc, char *argv[]) {
  GstElement *pipeline;
  GstBus *bus;
  GstMessage *msg;

  /* Initialize GStreamer */
  gst_init (&argc, &argv);

  /* Build the pipeline */
  pipeline = gst_parse_launch ("playbin2 uri=file://E:/test_1.MOV", NULL);

  /* Start playing */
  gst_element_set_state (pipeline, GST_STATE_PLAYING);

  /* Wait until error or EOS */
  bus = gst_element_get_bus (pipeline);
  msg = gst_bus_timed_pop_filtered (bus, GST_CLOCK_TIME_NONE, GST_MESSAGE_ERROR | GST_MESSAGE_EOS);

  /* Free resources */
  if (msg != NULL)
    gst_message_unref (msg);
  gst_object_unref (bus);
  gst_element_set_state (pipeline, GST_STATE_NULL);
  gst_object_unref (pipeline);
  return 0;
}

Primer error:

error C2664: 'gst_bus_timed_pop_filtered' : cannot convert parameter 3 from 'int' to 'GstMessageType'

Así que acabo de eliminar GST_MESSAGE_ERROR del código. Así que la línea es ahora:

msg = gst_bus_timed_pop_filtered (bus, GST_CLOCK_TIME_NONE, GST_MESSAGE_EOS);

Tuve el mismo problema con Ubuntu. Pero después de eso, en Ubuntu, pude reproducir un video.

Segundo error: Pero con Windows, la compilación es buena, pero cuando intento ejecutarlo, tengo esos errores:

GStreamer-CRITICAL **: gst_element_set_state: assertion 'GST_IS_ELEMENT <element>' failed
GStreamer-CRITICAL **: gst_element_get_bus: assertion 'GST_IS_ELEMENT <element>' failed
GStreamer-CRITICAL **: gst_bus_timed_pop_filtered: assertion 'GST_IS_BUS <bus>' failed
GStreamer-CRITICAL **: gst_object_unref: assertion 'object=!NULL' failed
GStreamer-CRITICAL **: gst_element_set_state: assertion 'GST_IS_ELEMENT <element>' failed
GStreamer-CRITICAL **: gst_object_unref: assertion 'object=!NULL' failed

Realmente no entiendo por qué funciona con Ubuntu y no con Windows. Y realmente no sé cómo resolver este problema. Usted me podría ayudar por favor ?

Saludos,

Respuestas a la pregunta(3)

Su respuesta a la pregunta