GNOME Bugzilla – Bug 776352
dashdemux: Drain remaining buffer in adapter
Last modified: 2016-12-22 12:14:22 UTC
Previous patch allows sidx box parsing from incoming buffers. Since the incoming buffer boundary might be over sidx box, there can be remaining buffer in isobmff parser adapter.
Created attachment 342320 [details] [review] dashdemux: Drain remaining buffer in adapter
Review of attachment 342320 [details] [review]: ::: ext/dash/gstdashdemux.c @@ +2539,3 @@ + + /* Drain adapter */ + gst_adapter_push (dash_stream->isobmff_adapter, buffer); Why are you pushing the buffer in here? Isn't the buffer actually from the beginning of the adapter, not the end, and now you add it to the end?
(In reply to Sebastian Dröge (slomo) from comment #2) > Review of attachment 342320 [details] [review] [review]: > Why are you pushing the buffer in here? Isn't the buffer actually from the > beginning of the adapter, not the end, and now you add it to the end? Thanks to review. My purpose was just to make one buffer (it looks good to me ...). In other words, that's to prevent pushing buffer twice :)
Attachment 342320 [details] pushed as 998c8ce - dashdemux: Drain remaining buffer in adapter