mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 03:52:25 +00:00
gst-validate: Avoid overreading array
If we offset the argv table as argument, we need to decrement the number of items in the array (argc) when iterating it
This commit is contained in:
parent
ca38c4dc9a
commit
0711d4e163
1 changed files with 1 additions and 1 deletions
|
@ -564,7 +564,7 @@ main (int argc, gchar ** argv)
|
|||
g_unix_signal_add (SIGINT, (GSourceFunc) intr_handler, pipeline);
|
||||
#endif
|
||||
|
||||
if (_is_playbin_pipeline (argc, argv + 1)) {
|
||||
if (_is_playbin_pipeline (argc - 1, argv + 1)) {
|
||||
_register_playbin_actions ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue