相关疑难解决方法(0)

Gstreamer与visual C++ express 2010 - 教程1

我是Gstreamer的新手,当我编译Gstreamer的教程1时我遇到了问题.我正在使用Windows 7 64位与visual c ++ express 2010和Gstreamer SDK 2012.11 32位(从这里下载).这是代码:

#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) …
Run Code Online (Sandbox Code Playgroud)

gstreamer visual-c++

6
推荐指数
1
解决办法
5385
查看次数

标签 统计

gstreamer ×1

visual-c++ ×1