slomo gst-plugins-bad: gst-plugins-bad/ gst-plugins-bad/tests/check/elements/
[email protected] Tue, 16 Dec 2008 04:37:29 -0800 (PST)
| Newsgroups | gmane.comp.video.gstreamer.cvs |
|---|---|
| Message-ID | <[email protected]> |
CVS Root: /cvs/gstreamer
Module: gst-plugins-bad
Changes by: slomo
Date: Tue Dec 16 2008 12:37:29 UTC
Log message:
* tests/check/elements/mxfdemux.c: (_sink_event):
* tests/check/elements/mxfdemux.h:
Make sure the main loop is already running when handling the EOS
event in pull mode. This works around a race condition that can
happen if the element goes into PLAYING, handles everything and
sends EOS before the main loop is started.
Modified files:
. : ChangeLog
tests/check/elements: mxfdemux.c mxfdemux.h
Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ChangeLog.diff?r1=1.3817&r2=1.3818
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/tests/check/elements/mxfdemux.c.diff?r1=1.1&r2=1.2
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/tests/check/elements/mxfdemux.h.diff?r1=1.1&r2=1.2
====Begin Diffs====
Index: ChangeLog
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-bad/ChangeLog,v
retrieving revision 1.3817
retrieving revision 1.3818
diff -u -d -r1.3817 -r1.3818
--- ChangeLog 16 Dec 2008 12:30:30 -0000 1.3817
+++ ChangeLog 16 Dec 2008 12:37:13 -0000 1.3818
@@ -1,5 +1,14 @@
2008-12-16 Sebastian Dröge <[email protected]>
+ * tests/check/elements/mxfdemux.c: (_sink_event):
+ * tests/check/elements/mxfdemux.h:
+ Make sure the main loop is already running when handling the EOS
+ event in pull mode. This works around a race condition that can
+ happen if the element goes into PLAYING, handles everything and
+ sends EOS before the main loop is started.
+
+2008-12-16 Sebastian Dröge <[email protected]>
* gst/mxf/mxfaes-bwf.c: (mxf_is_aes_bwf_essence_track),
(mxf_bwf_handle_essence_element),
(mxf_aes3_handle_essence_element), (mxf_bwf_create_caps),
Index: mxfdemux.c
RCS file: /cvs/gstreamer/gst-plugins-bad/tests/check/elements/mxfdemux.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- mxfdemux.c 16 Dec 2008 09:59:37 -0000 1.1
+++ mxfdemux.c 16 Dec 2008 12:37:15 -0000 1.2
@@ -82,6 +82,10 @@
_sink_event (GstPad * pad, GstEvent * event)
{
if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) {
+ if (loop) {
+ while (!g_main_loop_is_running (loop));
+ }
have_eos = TRUE;
if (loop)
g_main_loop_quit (loop);
Index: mxfdemux.h
RCS file: /cvs/gstreamer/gst-plugins-bad/tests/check/elements/mxfdemux.h,v
--- mxfdemux.h 16 Dec 2008 09:59:38 -0000 1.1
+++ mxfdemux.h 16 Dec 2008 12:37:15 -0000 1.2
@@ -4,2549 +4,2549 @@
#include <glib.h>
static const guint8 mxf_essence[] = {
- 0x74, 0x5d, 0x8c, 0x69, 0x74, 0x80, 0x69, 0x80,
- 0x5d, 0x80, 0x80, 0x74, 0x8c, 0x69, 0x80, 0x74
+ 0x74, 0x5d, 0x8c, 0x69, 0x74, 0x80, 0x69, 0x80,
+ 0x5d, 0x80, 0x80, 0x74, 0x8c, 0x69, 0x80, 0x74
};
static const guint8 mxf_file[] = {
-0x06, 0x0e, 0x2b, 0x34, 0x02, 0x05, 0x01, 0x01,
[...5060 lines suppressed...]
+ 0x06, 0x01, 0x00, 0x06, 0x0e, 0x2b, 0x34, 0x02,
+ 0x53, 0x01, 0x01, 0x0d, 0x01, 0x02, 0x01, 0x01,
+ 0x10, 0x01, 0x00, 0x83, 0x00, 0x00, 0x50, 0x3c,
+ 0x0a, 0x00, 0x10, 0xba, 0xc8, 0x72, 0x86, 0xb4,
+ 0xc4, 0x43, 0x30, 0x95, 0x5c, 0x3d, 0x89, 0x2a,
+ 0x7a, 0xfc, 0x01, 0x3f, 0x0b, 0x00, 0x08, 0x00,
+ 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x01, 0x3f,
+ 0x0c, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x3f, 0x0d, 0x00, 0x08, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f,
+ 0x05, 0x00, 0x04, 0x00, 0x00, 0x08, 0x9d, 0x3f,
+ 0x06, 0x00, 0x04, 0x00, 0x00, 0x00, 0x81, 0x3f,
+ 0x07, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x06,
+ 0x0e, 0x2b, 0x34, 0x02, 0x05, 0x01, 0x01, 0x0d,
+ 0x01, 0x02, 0x01, 0x01, 0x11, 0x01, 0x00, 0x83,
+ 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x01, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x4e, 0x3f, 0x00, 0x00, 0x00, 0x30,
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-cvs-verbose mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gstreamer-cvs-verbose