Skip to content
Snippets Groups Projects
  1. Dec 17, 2021
  2. Dec 16, 2021
  3. Dec 15, 2021
    • Lyndon Brown's avatar
      qt: add first-run-wizard entry to gitignore · b872ee14
      Lyndon Brown authored and Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf committed
      b872ee14
    • Alexandre Janniaux's avatar
      hxxx_sei: fix memory leak on error · e0dc6167
      Alexandre Janniaux authored and Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen committed
      e0dc6167
    • Alexandre Janniaux's avatar
      doc: QtGl: use nullptr and remove stray comments · b225c6db
      Alexandre Janniaux authored and Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen committed
      b225c6db
    • Alexandre Janniaux's avatar
      doc: QtGl: use std::unique_ptr<> · 530cc094
      Alexandre Janniaux authored and Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen committed
      This improves the documentation by exposing a C++-idiomatic way to
      handle the resources without leaking for most users copying this part of
      the code to their application.
      530cc094
    • Alexandre Janniaux's avatar
      doc: QtGL: switch to C++14 · a6ab2189
      Alexandre Janniaux authored and Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen committed
      C++14 is needed to use std::make_unique<> in particular, and is already
      a requirement for libvlc anyway.
      a6ab2189
    • Alexandre Janniaux's avatar
      configure.ac: fix typo "av_cv_" instead of ac_cv · 7577cfd2
      Alexandre Janniaux authored and Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen committed
      7577cfd2
    • Hugo Beauzée-Luyssen's avatar
      VLSub: Fix userdata directory creation · e2538946
      Hugo Beauzée-Luyssen authored
      Fix #26356
      e2538946
    • Lyndon Brown's avatar
      qt: build the prefs tree without needing cat hints · 68039794
      Lyndon Brown authored and Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen committed
      ...and indeed ignoring them.
      
      as per the previous commit, we want to get rid of cat hints from option
      sets, instead looking up cats from subcats. we have already implemented in
      the previous commit the lookup mechanism, and started ignoring cat hints
      from plugins, but still relied upon them from the core set for constructing
      the base tree (and reacted to them in building core panels).
      
      here we adjust the base tree construction code to completely remove our
      reliance upon cat hints. we also now completely ignore them when building
      core panels (no difference results from this).
      
      we are now in a position to purge the cat items themselves from the entire
      infrastructure along with all remaining artefacts, though that will be done
      separately later.
      
      note that the macos code needed no such change here, it was taken care of
      completely in the previous commit.
      68039794
    • Lyndon Brown's avatar
      config: lookup cat from subcat · e967f81f
      Lyndon Brown authored and Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen committed
      having `set_category()` + `set_subcategory()` pairs of calls to setup the
      location in the preferences tree where a plugin node needs to be attached
      to, with corresponding pairs of option records in the plugin option sets,
      is silly, inefficient and bug prone. all we need is the subcat records
      and we can look up the corresponding cat from the data table when it
      comes to time to build the tree.
      
      here we take a step forward to address this, adding cat data to the subcat
      data table, and a lookup function making use of it.
      
      note, qt and macos tree construction are done a little differently from
      each other, so while the change here is entirely sufficient to rid the core
      option set of category hints as far as the macos code is concerned, more
      work in a subsequent commit will be needed for qt. thus the purge of
      `set_category()` must be postponed for a later commit and so for now we
      must just ignore those records.
      
      a subcat table entry was added for `SUBCAT_HIDDEN` since for now the qt
      code could potentially look this up and we should preserve the existing
      behaviour for it for now.
      e967f81f
    • Lyndon Brown's avatar
      qt: clarify prefs tree construction documentation · b12d45d1
      Lyndon Brown authored and Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen committed
      with respect to plugin vs. module.
      
      before we adjust it in the next commit.
      b12d45d1
    • Lyndon Brown's avatar
      config: add and use index-of helpers for cat/subcat array iteration · 5569648c
      Lyndon Brown authored and Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen committed
      these 'index-of' helpers find the index for the given cat/subcat. this
      allows us to de-duplicate the code from the other helper functions (both
      for those that already exist and ones to be added in further commits).
      they loop based upon array length rather than looking out for some
      particular condition of varying properties in an end marker record,
      allowing us to also drop those.
      
      i used an index-of design here rather than have functions that return
      pointers because there will be a secondary use for index-of helpers in
      later commits.
      5569648c
    • Lyndon Brown's avatar
      config: split the cat/subcat table and name/help getters · e9edfd60
      Lyndon Brown authored and Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen committed
      ...to prepare for divergence in the data held for categories vs.
      subcategories.
      
      we replace here the generic helpers:
       - `config_CategoryNameGet()`
       - `config_CategoryHelpGet()`
      
      with:
       - `vlc_config_cat_GetName()`
       - `vlc_config_cat_GetHelp()`
       - `vlc_config_subcat_GetName()`
       - `vlc_config_subcat_GetHelp()`
      
      the new names conform to the format requested for the
      `vlc_config_subcat_IsGeneral()` function added in MR 313.
      
      opportunity was taken to remove the old style prefixes from the attributes
      of `config_category_t`, affecting a few additional lines, avoiding
      introducing inconsistency or new instances of the old style with the
      addition of `config_subcategory_t`.
      e9edfd60
    • Lyndon Brown's avatar
      config: move struct to where it belongs · 0db30968
      Lyndon Brown authored and Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen committed
      it is used only to define the structure of `categories_array` which
      lives in `vlc_config_cat.h`; it belongs next to that.
      0db30968
    • Lyndon Brown's avatar
      config: fix incorrect header guard name · 74046ea9
      Lyndon Brown authored and Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen committed
      this stuff is used by prefs, and is not even used by help currently.
      74046ea9
  4. Dec 14, 2021
  5. Dec 13, 2021
  6. Dec 11, 2021
    • Alexandre Janniaux's avatar
      test: video_output: add non-regression test · 785d1745
      Alexandre Janniaux authored
      This commit introduces an integration test infrastructure which mocks
      the external components (filters, decoders, window, display) used by the
      video pipeline and starts this pipeline using the usual input item
      properties and player.
      
      The test will spawn an interface to have an initial vlc_object_t without
      going though the private layers of libvlc (avoiding casting the instance
      to private type, etc), so as to avoid encouraging code using such casts.
      
      It uses this infrastructure to prevent regression from the ticket #26345.
      By ensuring that the second failed decoder update won't crash, we can
      check that an already started vout won't lead to double-join/free like
      it was fixed in a7c99d05.
      
      The test itself will later be extended to add more sensible cases.
      785d1745
Loading