/pidgin/main: 68e45dbc418e: VV: add videotestsrc as a fallback f...
Tomasz Wasilczyk
tomkiewicz at cpw.pidgin.im
Sun Jun 2 06:27:18 EDT 2013
Changeset: 68e45dbc418eecafc1498062a6e0a1133fa0783b
Author: Tomasz Wasilczyk <tomkiewicz at cpw.pidgin.im>
Date: 2013-06-02 12:27 +0200
Branch: default
URL: https://hg.pidgin.im/pidgin/main/rev/68e45dbc418e
Description:
VV: add videotestsrc as a fallback for better verbosity
diffstat:
pidgin/gtkmedia.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff --git a/pidgin/gtkmedia.c b/pidgin/gtkmedia.c
--- a/pidgin/gtkmedia.c
+++ b/pidgin/gtkmedia.c
@@ -1085,6 +1085,11 @@ create_default_video_src(PurpleMedia *me
src = gst_element_factory_make("v4lsrc", NULL);
#endif
if (src == NULL) {
+ src = gst_element_factory_make("videotestsrc", NULL);
+ if (src != NULL)
+ g_object_set(G_OBJECT(src), "is-live", TRUE, NULL);
+ }
+ if (src == NULL) {
purple_debug_error("gtkmedia", "Unable to find a suitable "
"element for the default video source.\n");
return NULL;
More information about the Commits
mailing list