After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 650877 - matroska: refactor code common to matroskademux and matroskaparse
matroska: refactor code common to matroskademux and matroskaparse
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other All
: Normal enhancement
: 0.10.31
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-05-23 15:02 UTC by Debarshi Ray
Modified: 2011-06-15 22:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
matroska: refactor code common to matroskademux and matroskaparse (91.04 KB, patch)
2011-05-23 15:07 UTC, Debarshi Ray
committed Details | Review
matroska: refactor code common to matroskademux and matroskaparse (90.74 KB, patch)
2011-05-23 15:18 UTC, Debarshi Ray
rejected Details | Review
matroska: move GstMatroska{Demux,Parse}::state to GstMatroskaReadCommon (18.52 KB, patch)
2011-05-23 15:50 UTC, Debarshi Ray
committed Details | Review
matroska: refactor code common to matroskademux and matroskaparse (20.84 KB, patch)
2011-05-23 17:02 UTC, Debarshi Ray
committed Details | Review
matroska: fixed copyright headers (1.36 KB, patch)
2011-05-23 17:47 UTC, Debarshi Ray
committed Details | Review
matroska: refactor code common to matroskademux and matroskaparse (19.59 KB, patch)
2011-05-24 15:44 UTC, Debarshi Ray
committed Details | Review
matroska: refactor code common to matroskademux and matroskaparse (42.00 KB, patch)
2011-05-25 07:03 UTC, Debarshi Ray
committed Details | Review
matroska: refactor code common to matroskademux and matroskaparse (4.13 KB, patch)
2011-05-25 12:56 UTC, Debarshi Ray
committed Details | Review
matroska: refactor code common to matroskademux and matroskaparse (11.32 KB, patch)
2011-05-26 18:24 UTC, Debarshi Ray
committed Details | Review
matroska: refactor code common to matroskademux and matroskaparse (12.15 KB, patch)
2011-05-26 18:27 UTC, Debarshi Ray
committed Details | Review
matroska: refactor code common to matroskademux and matroskaparse (9.08 KB, patch)
2011-05-26 18:33 UTC, Debarshi Ray
committed Details | Review
matroska: refactor code common to matroskademux and matroskaparse (5.01 KB, patch)
2011-05-27 14:37 UTC, Debarshi Ray
committed Details | Review
refactor code common to matroskademux and matroskaparse (8.91 KB, patch)
2011-05-27 15:03 UTC, Debarshi Ray
committed Details | Review
matroska: refactor code common to matroskademux and matroskaparse (4.59 KB, patch)
2011-05-27 17:46 UTC, Debarshi Ray
committed Details | Review
matroska: refactor code common to matroskademux and matroskaparse (7.33 KB, patch)
2011-05-28 05:30 UTC, Debarshi Ray
committed Details | Review
matroska: refactor code common to matroskademux and matroskaparse (11.24 KB, patch)
2011-05-30 03:55 UTC, Debarshi Ray
committed Details | Review
matroska: refactor code common to matroskademux and matroskaparse (10.83 KB, patch)
2011-05-30 05:11 UTC, Debarshi Ray
committed Details | Review
matroska: refactor code common to matroskademux and matroskaparse (16.78 KB, patch)
2011-05-30 13:05 UTC, Debarshi Ray
committed Details | Review
matroska: refactor code common to matroskademux and matroskaparse (15.13 KB, patch)
2011-06-04 20:59 UTC, Debarshi Ray
committed Details | Review
matroska: refactor code common to matroskademux and matroskaparse (6.60 KB, patch)
2011-06-05 04:26 UTC, Debarshi Ray
committed Details | Review
matroska: refactor code common to matroskademux and matroskaparse (11.91 KB, patch)
2011-06-05 04:46 UTC, Debarshi Ray
committed Details | Review
matroska: refactor code common to matroskademux and matroskaparse (45.52 KB, patch)
2011-06-05 17:34 UTC, Debarshi Ray
committed Details | Review
matroska: refactor code common to matroskademux and matroskaparse (18.75 KB, patch)
2011-06-06 07:15 UTC, Debarshi Ray
committed Details | Review
matroska: refactor code common to matroskademux and matroskaparse (10.52 KB, patch)
2011-06-06 09:18 UTC, Debarshi Ray
committed Details | Review
matroska: refactor code common to matroskademux and matroskaparse (6.07 KB, patch)
2011-06-06 12:52 UTC, Debarshi Ray
committed Details | Review

Description Debarshi Ray 2011-05-23 15:02:44 UTC
There is a lot of code that is shared by the matroskademux and matroskaparse because the parser was written by copying the demultiplexer. Sharing this common code will avoid duplication of bugs and make it easier to introduce new features.
Comment 1 Debarshi Ray 2011-05-23 15:07:56 UTC
Created attachment 188387 [details] [review]
matroska: refactor code common to matroskademux and matroskaparse
Comment 2 Debarshi Ray 2011-05-23 15:18:50 UTC
Created attachment 188389 [details] [review]
matroska: refactor code common to matroskademux and matroskaparse

Removed GstMatroskaReadCommonState from matroska-read-common.h. It is not being used yet. Should be in a later commit.
Comment 3 Sebastian Dröge (slomo) 2011-05-23 15:22:22 UTC
Comment on attachment 188387 [details] [review]
matroska: refactor code common to matroskademux and matroskaparse

commit 15ce1142ca8bb70931eb2bd2eddd2f17142acb2b
Author: Debarshi Ray <rishi@gnu.org>
Date:   Mon May 23 18:06:44 2011 +0300

    matroska: refactor code common to matroskademux and matroskaparse
    
    Replace the following functions with their gst_matroska_read_common_*
    counterparts:
        - gst_matroska_{demux,parse}_parse_index
        - gst_matroska_{demux,parse}_parse_skip
        - gst_matroska_{demux,parse}_stream_from_num
    
    Introduce GstMatroskaReadCommon to contain those members of
    GstMatroskaDemux and GstMatroskaParse that were used by the above
    functions.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=650877
Comment 4 Tim-Philipp Müller 2011-05-23 15:37:33 UTC
Next time you copy'n'paste code from one file into another, please copy'n'paste the original copyrights as well ;-)
Comment 5 Debarshi Ray 2011-05-23 15:50:27 UTC
Created attachment 188393 [details] [review]
matroska: move GstMatroska{Demux,Parse}::state to GstMatroskaReadCommon
Comment 6 Debarshi Ray 2011-05-23 17:02:36 UTC
Created attachment 188407 [details] [review]
matroska: refactor code common to matroskademux and matroskaparse
Comment 7 Debarshi Ray 2011-05-23 17:47:37 UTC
Created attachment 188409 [details] [review]
matroska: fixed copyright headers
Comment 8 Sebastian Dröge (slomo) 2011-05-24 07:55:43 UTC
Already about 500 lines of code less than previous release. Good work :)

commit b316e2346cf31e6122e1244995fd0875580c7ae1
Author: Debarshi Ray <rishi@gnu.org>
Date:   Mon May 23 20:46:04 2011 +0300

    matroska: fixed copyright headers
    
    https://bugzilla.gnome.org/show_bug.cgi?id=650877

commit 85036682cbe341da237830aae6123e52e6aa6580
Author: Debarshi Ray <rishi@gnu.org>
Date:   Mon May 23 18:06:44 2011 +0300

    matroska: refactor code common to matroskademux and matroskaparse
    
    Move the following functions to matroska-read-common.[ch] from
    matroska-demux.c and matroska-parse.c:
        - gst_matroska_decode_content_encodings
        - gst_matroska_decompress_data
    
    https://bugzilla.gnome.org/show_bug.cgi?id=650877

commit 51c7e6d252466bc332332fb91234f4519e58b57a
Author: Debarshi Ray <rishi@gnu.org>
Date:   Mon May 23 18:48:57 2011 +0300

    matroska: move GstMatroska{Demux,Parse}::state to GstMatroskaReadCommon
    
    https://bugzilla.gnome.org/show_bug.cgi?id=650877
Comment 9 Debarshi Ray 2011-05-24 15:44:02 UTC
Created attachment 188478 [details] [review]
matroska: refactor code common to matroskademux and matroskaparse
Comment 10 Debarshi Ray 2011-05-25 07:03:18 UTC
Created attachment 188557 [details] [review]
matroska: refactor code common to matroskademux and matroskaparse
Comment 11 Sebastian Dröge (slomo) 2011-05-25 08:15:39 UTC
commit f885e2721a2ee52fe5ff33179bd2b0aa0339b225
Author: Debarshi Ray <rishi@gnu.org>
Date:   Mon May 23 18:06:44 2011 +0300

    matroska: refactor code common to matroskademux and matroskaparse
    
    Move the following functions to matroska-read-common.[ch] from
    matroska-demux.c and matroska-parse.c:
        - gst_matroska_{demux,parse}_encoding_order_unique
        - gst_matroska_{demux,parse}_read_track_encoding
    
    https://bugzilla.gnome.org/show_bug.cgi?id=650877
Comment 12 Sebastian Dröge (slomo) 2011-05-25 08:17:26 UTC
commit 72d969b3605aff4bfde3f97716a718eb40cdb484
Author: Debarshi Ray <rishi@gnu.org>
Date:   Mon May 23 18:06:44 2011 +0300

    matroska: refactor code common to matroskademux and matroskaparse
    
    Move the following function to matroska-read-common.[ch] from
    matroska-demux.c and matroska-parse.c:
        - gst_matroska_{demux,parse}_peek_bytes
    
    https://bugzilla.gnome.org/show_bug.cgi?id=650877
Comment 13 Debarshi Ray 2011-05-25 12:56:26 UTC
Created attachment 188586 [details] [review]
matroska: refactor code common to matroskademux and matroskaparse
Comment 14 Sebastian Dröge (slomo) 2011-05-25 18:03:19 UTC
commit 5384308c9953c97fe00e3766ecbc9ccd055576ce
Author: Debarshi Ray <rishi@gnu.org>
Date:   Mon May 23 18:06:44 2011 +0300

    matroska: refactor code common to matroskademux and matroskaparse
    
    Move the following function to matroska-read-common.[ch] from
    matroska-demux.c and matroska-parse.c:
        - gst_matroska_{demux,parse}_peek_pull
    
    https://bugzilla.gnome.org/show_bug.cgi?id=650877
Comment 15 Christian Fredrik Kalager Schaller 2011-05-26 09:38:34 UTC
Great work on these patches Debarshi, our Matroska support has needed improving for some time. Any chance you could also look at sorting out some of our long standing reported Matroska bugs? (140783,334082,434996,481070,616936,617367,623565,636599,639710,644154,644808,650516).
Comment 16 Debarshi Ray 2011-05-26 18:21:05 UTC
(In reply to comment #15)
> Any chance you could also look at sorting out some of our long
> standing reported Matroska bugs?
> (140783,334082,434996,481070,616936,617367,623565,636599,639710,644154,644808,650516).

I will take a look.
Comment 17 Debarshi Ray 2011-05-26 18:24:44 UTC
Created attachment 188693 [details] [review]
matroska: refactor code common to matroskademux and matroskaparse
Comment 18 Debarshi Ray 2011-05-26 18:27:53 UTC
Created attachment 188694 [details] [review]
matroska: refactor code common to matroskademux and matroskaparse
Comment 19 Debarshi Ray 2011-05-26 18:33:00 UTC
Created attachment 188695 [details] [review]
matroska: refactor code common to matroskademux and matroskaparse
Comment 20 Sebastian Dröge (slomo) 2011-05-27 07:11:24 UTC
commit 5ba333bcad38af955303581a436a9b37184dd12a
Author: Debarshi Ray <rishi@gnu.org>
Date:   Thu May 26 23:35:52 2011 +0530

    matroska: refactor code common to matroskademux and matroskaparse
    
    Move the following functions to matroska-read-common.[ch] from
    matroska-demux.c and matroska-parse.c:
        - gst_matroska_{demux,parse}_encoding_cmp
        - gst_matroska_{demux,parse}_read_track_encodings
    
    https://bugzilla.gnome.org/show_bug.cgi?id=650877

commit 2589f1cd2d64c792d8ba5e141f2042a349de4e54
Author: Debarshi Ray <rishi@gnu.org>
Date:   Mon May 23 18:06:44 2011 +0300

    matroska: refactor code common to matroskademux and matroskaparse
    
    Move the following functions to matroska-read-common.[ch] from
    matroska-demux.c and matroska-parse.c:
        - gst_matroska_{demux,parse}_peek_id_length_pull
        - gst_matroska_{demux,parse}_peek_id_length_push
    
    https://bugzilla.gnome.org/show_bug.cgi?id=650877

commit f3820b61a181d12c3b3e36234e2c8336683b9daf
Author: Debarshi Ray <rishi@gnu.org>
Date:   Mon May 23 18:06:44 2011 +0300

    matroska: refactor code common to matroskademux and matroskaparse
    
    Move the following function to matroska-read-common.[ch] from
    matroska-demux.c and matroska-parse.c:
        - gst_matroska_{demux,parse}_peek_adapter
    
    https://bugzilla.gnome.org/show_bug.cgi?id=650877
Comment 21 Debarshi Ray 2011-05-27 14:37:28 UTC
Created attachment 188762 [details] [review]
matroska: refactor code common to matroskademux and matroskaparse
Comment 22 Debarshi Ray 2011-05-27 15:03:46 UTC
Created attachment 188765 [details] [review]
refactor code common to matroskademux and matroskaparse
Comment 23 Debarshi Ray 2011-05-27 17:46:57 UTC
Created attachment 188777 [details] [review]
matroska: refactor code common to matroskademux and matroskaparse
Comment 24 Debarshi Ray 2011-05-28 05:30:27 UTC
Created attachment 188799 [details] [review]
matroska: refactor code common to matroskademux and matroskaparse
Comment 25 Debarshi Ray 2011-05-30 03:55:25 UTC
Created attachment 188854 [details] [review]
matroska: refactor code common to matroskademux and matroskaparse
Comment 26 Debarshi Ray 2011-05-30 05:11:44 UTC
Created attachment 188856 [details] [review]
matroska: refactor code common to matroskademux and matroskaparse
Comment 27 Debarshi Ray 2011-05-30 13:05:49 UTC
Created attachment 188883 [details] [review]
matroska: refactor code common to matroskademux and matroskaparse
Comment 28 Debarshi Ray 2011-06-04 20:59:30 UTC
Created attachment 189235 [details] [review]
matroska: refactor code common to matroskademux and matroskaparse
Comment 29 Debarshi Ray 2011-06-05 04:26:20 UTC
Created attachment 189251 [details] [review]
matroska: refactor code common to matroskademux and matroskaparse
Comment 30 Debarshi Ray 2011-06-05 04:46:52 UTC
Created attachment 189252 [details] [review]
matroska: refactor code common to matroskademux and matroskaparse
Comment 31 Debarshi Ray 2011-06-05 17:34:00 UTC
Created attachment 189274 [details] [review]
matroska: refactor code common to matroskademux and matroskaparse
Comment 32 Debarshi Ray 2011-06-06 07:15:06 UTC
Created attachment 189299 [details] [review]
matroska: refactor code common to matroskademux and matroskaparse
Comment 33 Debarshi Ray 2011-06-06 09:18:59 UTC
Created attachment 189306 [details] [review]
matroska: refactor code common to matroskademux and matroskaparse
Comment 34 Debarshi Ray 2011-06-06 12:52:37 UTC
Created attachment 189317 [details] [review]
matroska: refactor code common to matroskademux and matroskaparse