[vlc-commits] [Git][videolan/vlc][master] vlc_es: remove read-only i_x_origin/i_y_origin from subs_format_t

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed Oct 28 16:55:19 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
32b160d9 by Steve Lhomme at 2026-10-28T15:37:01+00:00
vlc_es: remove read-only i_x_origin/i_y_origin from subs_format_t

- - - - -


3 changed files:

- include/vlc_es.h
- modules/misc/preparser_serializer/json/fromjson.c
- modules/misc/preparser_serializer/json/tojson.c


Changes:

=====================================
include/vlc_es.h
=====================================
@@ -553,9 +553,6 @@ struct subs_format_t
     char *psz_encoding;
 
 
-    int  i_x_origin; /**< x coordinate of the subtitle. 0 = left */
-    int  i_y_origin; /**< y coordinate of the subtitle. 0 = top */
-
     struct
     {
         /* the width of the original movie the spu was extracted from */


=====================================
modules/misc/preparser_serializer/json/fromjson.c
=====================================
@@ -706,8 +706,6 @@ static void fromJSON_subs_format(struct serdes_sys *sys,
     bool err = false;
 
     json_object_to_string(obj, "psz_encoding", &sub->psz_encoding, &err);
-    json_object_to_int(obj, "i_x_origin", &sub->i_x_origin, &err);
-    json_object_to_int(obj, "i_y_origin", &sub->i_y_origin, &err);
 
     const struct json_object *subobj = json_get_object(obj, "spu");
     err |= (subobj == NULL);


=====================================
modules/misc/preparser_serializer/json/tojson.c
=====================================
@@ -614,8 +614,6 @@ static void toJSON_subs_format(struct serdes_sys *sys,
         return;
     }
     json_stringify_first(string, sys, "psz_encoding", subs->psz_encoding);
-    json_stringify(number, sys, "i_x_origin", subs->i_x_origin);
-    json_stringify(number, sys, "i_y_origin", subs->i_y_origin);
 
     /* subs->spu */
     json_stringify_utf8string(sys, "spu");



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/32b160d9e9cc5ff9e3a253c769315c82fb8340a9

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/32b160d9e9cc5ff9e3a253c769315c82fb8340a9
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list