ReFormationPro / Gstreamer-H264-Encryption

Experimental GStreamer plugin for encrypting / decrypting H264 streams with AES
https://medium.com/@oguzhanoztaskin/gstreamer-h264-encryption-plugin-cf2c7b43c383
GNU General Public License v3.0
5 stars 1 forks source link

h264_encrypt::gst_h264_encrypt_set_property() - fixed warning: label followed by a declaration is a C23 extension #7

Closed inobelar closed 2 months ago

inobelar commented 2 months ago

gcc 13.2.0 produces the next warning: `Label followed by a declaration is a C23 extension.

Between 2 possible ways to fix it:

  1. Declare seed before switch/case, and assign to it g_value_get_uint(value) result
  2. Wrap case PROP_IV_SEED by brackets, to make separated scope, that begins from seed declaration & initializion

I choosed second way for clarity.