[longomatch] Fix ROI rendering clips with audio
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Fix ROI rendering clips with audio
- Date: Tue, 5 May 2015 09:11:23 +0000 (UTC)
commit 973c49b7b5bd4b6cfab309d3d9ea4a564ca633cf
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue May 5 11:00:17 2015 +0200
Fix ROI rendering clips with audio
Only configure title and roi for the firt video buffer
and skip the audio ones
libcesarplayer/gst-nle-source.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libcesarplayer/gst-nle-source.c b/libcesarplayer/gst-nle-source.c
index 38175ea..fe079bd 100644
--- a/libcesarplayer/gst-nle-source.c
+++ b/libcesarplayer/gst-nle-source.c
@@ -389,7 +389,7 @@ gst_nle_source_push_buffer (GstNleSource * nlesrc, GstBuffer * buf,
nlesrc->accu_time = new_ts;
}
- if (G_UNLIKELY (!nlesrc->item_setup)) {
+ if (G_UNLIKELY (!nlesrc->item_setup) && !is_audio) {
gst_nle_source_update_videocrop (nlesrc, GST_BUFFER_CAPS (buf));
gst_nle_source_update_overlay_title (nlesrc);
nlesrc->item_setup = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]