[longomatch] Use dshowvideosink as the alternative videosink on windows



commit 309c4eaf999ac67fa6a6130b1de94b714712cbf9
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sat Aug 27 11:30:39 2011 +0200

    Use dshowvideosink as the alternative videosink on windows

 libcesarplayer/bacon-video-widget-gst-0.10.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libcesarplayer/bacon-video-widget-gst-0.10.c b/libcesarplayer/bacon-video-widget-gst-0.10.c
index 916c00e..5bfbf2d 100644
--- a/libcesarplayer/bacon-video-widget-gst-0.10.c
+++ b/libcesarplayer/bacon-video-widget-gst-0.10.c
@@ -61,10 +61,12 @@
 /* gtk+/gnome */
 #ifdef WIN32
 #include <gdk/gdkwin32.h>
-#define DEFAULT_VIDEO_SINK "autovideosink"
+#define DEFAULT_VIDEO_SINK "d3dvideosink"
+#define BACKUP_VIDEO_SINK "dshowvideosink"
 #else
 #include <gdk/gdkx.h>
 #define DEFAULT_VIDEO_SINK "gsettingsvideosink"
+#define BACKUP_VIDEO_SINK "autovideosink"
 #endif
 #include <gtk/gtk.h>
 #include <gio/gio.h>
@@ -5454,7 +5456,7 @@ bacon_video_widget_new (int width, int height, BvwUseType type, GError ** err)
       gst_element_set_state (video_sink, GST_STATE_NULL);
       gst_object_unref (video_sink);
       /* Try again with autovideosink */
-      video_sink = gst_element_factory_make ("autovideosink", "video-sink");
+      video_sink = gst_element_factory_make (BACKUP_VIDEO_SINK, "video-sink");
       gst_element_set_bus (video_sink, bvw->priv->bus);
       ret = gst_element_set_state (video_sink, GST_STATE_READY);
       if (ret == GST_STATE_CHANGE_FAILURE) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]