CVS Root: /cvs/gstreamer
Module: gst-plugins-base
Changes by: ds
Date: Mon Nov 24 2008 19:19:13 UTC
Log message:
* ext/ogg/gstoggmux.c:
* ext/ogg/gstoggmux.h:
If we're muxing a dirac stream, flush the page after every picture.
Modified files:
. : ChangeLog
ext/ogg : gstoggmux.c gstoggmux.h
Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/ChangeLog.diff?r1=1.4210&r2=1.4211
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/ext/ogg/gstoggmux.c.diff?r1=1.102&r2=1.103
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/ext/ogg/gstoggmux.h.diff?r1=1.4&r2=1.5
====Begin Diffs====
Index: ChangeLog
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-base/ChangeLog,v
retrieving revision 1.4210
retrieving revision 1.4211
diff -u -d -r1.4210 -r1.4211
--- ChangeLog 24 Nov 2008 12:56:51 -0000 1.4210
+++ ChangeLog 24 Nov 2008 19:18:57 -0000 1.4211
@@ -1,3 +1,9 @@
+2008-11-24 David Schleef <[email protected]>
+
+ * ext/ogg/gstoggmux.c:
+ * ext/ogg/gstoggmux.h:
+ If we're muxing a dirac stream, flush the page after every picture.
2008-11-24 Stefan Kost <[email protected]>
* gst-libs/gst/audio/gstbaseaudiosink.c:
Index: gstoggmux.c
RCS file: /cvs/gstreamer/gst-plugins-base/ext/ogg/gstoggmux.c,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -d -r1.102 -r1.103
--- gstoggmux.c 8 Oct 2008 12:12:01 -0000 1.102
+++ gstoggmux.c 24 Nov 2008 19:18:58 -0000 1.103
@@ -876,6 +876,7 @@
res = g_list_append (res, pad->buffer);
pad->buffer = pad->next_buffer;
pad->next_buffer = NULL;
+ pad->always_flush_page = TRUE;
} else {
GST_LOG_OBJECT (thepad, "caps don't have streamheader");
}
@@ -1040,9 +1041,11 @@
if (gst_structure_has_name (structure, "video/x-theora")) {
GST_DEBUG_OBJECT (thepad, "putting %s page at the front", "Theora");
hbufs = g_list_prepend (hbufs, hbuf);
} else if (gst_structure_has_name (structure, "video/x-dirac")) {
GST_DEBUG_OBJECT (thepad, "putting %s page at the front", "Dirac");
hbufs = g_list_append (hbufs, hbuf);
@@ -1279,7 +1282,7 @@
tmpbuf = NULL;
/* we flush when we see a new keyframe */
- force_flush = (pad->prev_delta && !delta_unit);
+ force_flush = (pad->prev_delta && !delta_unit) || pad->always_flush_page;
if (duration != -1) {
pad->duration += duration;
/* if page duration exceeds max, flush page */
Index: gstoggmux.h
RCS file: /cvs/gstreamer/gst-plugins-base/ext/ogg/gstoggmux.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- gstoggmux.h 7 Aug 2008 16:11:14 -0000 1.4
+++ gstoggmux.h 24 Nov 2008 19:18:59 -0000 1.5
@@ -79,6 +79,8 @@
gboolean prev_delta; /* was the previous buffer a delta frame */
GstPadEventFunction collect_event;
+ gboolean always_flush_page;
}
GstOggPad;
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.