totem r5156 - in trunk: . src/backend



Author: hadess
Date: Wed Feb 20 16:23:40 2008
New Revision: 5156
URL: http://svn.gnome.org/viewvc/totem?rev=5156&view=rev

Log:
2008-02-20  Bastien Nocera  <hadess hadess net>

	* src/backend/bacon-video-widget-gst-0.10.c:
	(bacon_video_widget_can_play):
	Check for flupsdemux version, if it's installed, if it's
	not installed, fall-through as the missing-plugins will
	be triggered



Modified:
   trunk/ChangeLog
   trunk/src/backend/bacon-video-widget-gst-0.10.c

Modified: trunk/src/backend/bacon-video-widget-gst-0.10.c
==============================================================================
--- trunk/src/backend/bacon-video-widget-gst-0.10.c	(original)
+++ trunk/src/backend/bacon-video-widget-gst-0.10.c	Wed Feb 20 16:23:40 2008
@@ -3932,6 +3932,10 @@
       if (!gst_default_registry_check_feature_version ("dvdreadsrc", 0, 10, 0)) {
         GST_DEBUG ("Missing dvdreadsrc");
         res = BVW_CAN_PLAY_MISSING_PLUGINS;
+      } else if (gst_default_registry_check_feature_version ("flupsdemux", 0, 10, 0) &&
+      		 !gst_default_registry_check_feature_version ("flupsdemux", 0, 10, 15)) {
+        GST_DEBUG ("flupsdemux not new enough for DVD playback");
+        res = BVW_CAN_PLAY_MISSING_PLUGINS;
       } else {
         res = BVW_CAN_PLAY_SUCCESS;
       }
@@ -3948,6 +3952,12 @@
         res = BVW_CAN_PLAY_MISSING_PLUGINS;
         break;
       }
+      if (gst_default_registry_check_feature_version ("flupsdemux", 0, 10, 0) &&
+      	  !gst_default_registry_check_feature_version ("flupsdemux", 0, 10, 15)) {
+        GST_DEBUG ("flupsdemux not new enough for DVB playback");
+        res = BVW_CAN_PLAY_MISSING_PLUGINS;
+        break;
+      }
 
       filename = bacon_video_widget_get_channels_file ();
       if (g_file_test (filename, G_FILE_TEST_EXISTS)) {



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