GNOME Bugzilla – Bug 655918
qtdemux : qtdemux_add_fragmented_samples return error.
Last modified: 2011-09-05 12:58:20 UTC
I've found that some problem in qtdemux plug-in "qtdemux_add_fragmented_samples" function, It'll set the wrong default value for variable "res". but TRUE(1) means not equal to GST_FLOW_OK(0). --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -5138,7 +5138,7 @@ static GstFlowReturn qtdemux_add_fragmented_samples (GstQTDemux * qtdemux) { guint64 length, offset; GstBuffer *buf = NULL; GstFlowReturn ret = GST_FLOW_OK; - GstFlowReturn res = TRUE; + GstFlowReturn res = GST_FLOW_OK; offset = qtdemux->moof_offset; GST_DEBUG_OBJECT (qtdemux, "next moof at offset %" G_GUINT64_FORMAT, offset);
Could you create a patch using 'git format-patch'? Thanks. (otherwise, looks good)
Thanks. Committed. commit a3e9b676c07497152630463afd00682777b2b1df Author: Brian Li <brian7003@gmail.com> Date: Mon Sep 5 14:46:29 2011 +0200 qtdemux: fragmented support; properly init return variable value Fixes #655918.