[Swfdec-commits] swfdec/swfdec_net_stream.c
Benjamin Otte
company at kemper.freedesktop.org
Thu Oct 16 05:48:00 PDT 2008
swfdec/swfdec_net_stream.c | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit c42092866fb29b4dd2d8ad8850f007990fd69148
Author: Benjamin Otte <otte at gnome.org>
Date: Thu Oct 16 14:47:25 2008 +0200
don't create a new VideoDecoder after seeks
This should get around H264 getting broken codec data.
diff --git a/swfdec/swfdec_net_stream.c b/swfdec/swfdec_net_stream.c
index b9de530..422a4a3 100644
--- a/swfdec/swfdec_net_stream.c
+++ b/swfdec/swfdec_net_stream.c
@@ -191,11 +191,13 @@ swfdec_net_stream_video_goto (SwfdecNetStream *stream, guint timestamp)
g_object_unref (stream->decoder);
stream->decoder = NULL;
}
+#if 0
if (stream->decoder != NULL &&
(stream->decoder_time >= stream->current_time)) {
g_object_unref (stream->decoder);
stream->decoder = NULL;
}
+#endif
skip = FALSE;
if (stream->decoder == NULL) {
@@ -757,10 +759,12 @@ swfdec_net_stream_seek (SwfdecNetStream *stream, double secs)
SWFDEC_ERROR ("FIXME: implement seeking in audio only NetStream");
return;
}
+#if 0
if (stream->decoder) {
g_object_unref (stream->decoder);
stream->decoder = NULL;
}
+#endif
msecs = secs * 1000;
msecs += first;
if (msecs > last)
More information about the Swfdec-commits
mailing list