Search
SailfishOS Open Build Service
>
Projects
>
home:msameer
:
gst-nokia-videosrc2
>
gst-plugins-bad-free
> 0004-camerabin-change-queue-place-in-videobin-Maemo-speci.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0004-camerabin-change-queue-place-in-videobin-Maemo-speci.patch of Package gst-plugins-bad-free
From 214c44e5c20d78dd1877cd5dbaa378c0954cebf8 Mon Sep 17 00:00:00 2001 From: Teemu Katajisto <ext-teemu.katajisto@nokia.com> Date: Wed, 4 Nov 2009 12:46:09 +0200 Subject: [PATCH 04/23] camerabin: change queue place in videobin (Maemo-specific) Performance increase when queue element is placed between video encoder and muxer. --- gst/camerabin/camerabinvideo.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/gst/camerabin/camerabinvideo.c b/gst/camerabin/camerabinvideo.c index 08a842e..06ce8ba 100644 --- a/gst/camerabin/camerabinvideo.c +++ b/gst/camerabin/camerabinvideo.c @@ -508,12 +508,6 @@ gst_camerabin_video_create_elements (GstCameraBinVideo * vid) /* Add queue element for video */ vid->tee_video_srcpad = gst_element_get_request_pad (vid->tee, "src%d"); - vid->video_queue = gst_element_factory_make ("queue", "video-queue"); - if (!gst_camerabin_add_element (vidbin, vid->video_queue)) { - goto error; - } - g_object_set (vid->video_queue, "silent", TRUE, NULL); - /* Add probe for rewriting video timestamps */ vid->vid_tee_probe_id = gst_pad_add_buffer_probe (vid->tee_video_srcpad, G_CALLBACK (camerabin_video_pad_tee_src0_have_buffer), vid); @@ -538,6 +532,11 @@ gst_camerabin_video_create_elements (GstCameraBinVideo * vid) goto error; } + vid->video_queue = gst_element_factory_make ("queue", "video-queue"); + if (!gst_camerabin_add_element (vidbin, vid->video_queue)) { + goto error; + } + /* Add application set or default muxer element */ if (vid->app_mux) { vid->muxer = vid->app_mux; -- 1.7.10.4