Changeset 135863 in webkit
- Timestamp:
- Nov 27, 2012 7:58:34 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r135862 r135863 1 2012-11-27 Víctor Manuel Jáquez Leal <vjaquez@igalia.com> 2 3 [GStreamer] Verify if GStreamer was previously initialized 4 https://bugs.webkit.org/show_bug.cgi?id=103151 5 6 Reviewed by Philippe Normand. 7 8 This patch calls gst_is_initialized() before calling gst_init_check() 9 in order to verify if GStreamer has not been initialized before. 10 11 This is useful particularly for WebKit1 so the applications could 12 initialize GStreamer before. 13 14 As the API call was added in GStreamer v0.10.31, the patch fences the 15 call only in that version of GStreamer or above. 16 17 No new tests, existing media tests cover this change. 18 19 * platform/graphics/gstreamer/GStreamerUtilities.cpp: 20 (WebCore::initializeGStreamer): 21 1 22 2012-11-27 Kentaro Hara <haraken@chromium.org> 2 23 -
trunk/Source/WebCore/platform/graphics/gstreamer/GStreamerUtilities.cpp
r114269 r135863 30 30 bool initializeGStreamer() 31 31 { 32 #if GST_CHECK_VERSION(0, 10, 31) 33 if (gst_is_initialized()) 34 return true; 35 #endif 36 32 37 GOwnPtr<GError> error; 33 38 // FIXME: We should probably pass the arguments from the command line. -
trunk/Tools/ChangeLog
r135857 r135863 1 2012-11-27 Víctor Manuel Jáquez Leal <vjaquez@igalia.com> 2 3 [GStreamer] Verify if GStreamer was previously initialized 4 https://bugs.webkit.org/show_bug.cgi?id=103151 5 6 Reviewed by Philippe Normand. 7 8 This patch adds the gst_init() in GtkLauncher, so we can add the 9 GStreamer options in the command line through 10 gst_init_get_option_group(). 11 12 This approach is not valid for MiniBrowser because it uses WebKit2, 13 where the GStreamer backend lives in the web process, which is 14 different from the UI process. 15 16 * GNUmakefile.am: 17 * GtkLauncher/main.c: 18 (main): 19 1 20 2012-11-27 Andras Becsi <andras.becsi@digia.com> 2 21 -
trunk/Tools/GNUmakefile.am
r134864 r135863 23 23 $(global_cflags) \ 24 24 $(GTK_CFLAGS) \ 25 $(LIBSOUP_CFLAGS) 25 $(LIBSOUP_CFLAGS) \ 26 $(GSTREAMER_CFLAGS) 26 27 27 28 Programs_GtkLauncher_LDADD = \ … … 31 32 $(GLIB_LIBS) \ 32 33 $(LIBSOUP_LIBS) \ 33 $(WINMM_LIBS) 34 $(WINMM_LIBS) \ 35 $(GSTREAMER_LIBS) 34 36 35 37 Programs_GtkLauncher_LDFLAGS = \ -
trunk/Tools/GtkLauncher/main.c
r130386 r135863 28 28 #include "LauncherInspectorWindow.h" 29 29 #include <errno.h> 30 #include <gst/gst.h> 30 31 #include <gtk/gtk.h> 31 32 #include <stdlib.h> … … 484 485 485 486 gtk_init(&argc, &argv); 487 gst_init(&argc, &argv); 486 488 487 489 GOptionContext *context = g_option_context_new(0); 488 490 g_option_context_add_main_entries(context, commandLineOptions, 0); 489 491 g_option_context_add_group(context, gtk_get_option_group(TRUE)); 492 g_option_context_add_group(context, gst_init_get_option_group()); 490 493 491 494 webkitSettings = webkit_web_settings_new();
Note: See TracChangeset
for help on using the changeset viewer.