Error running webcam

When I run the example it works fine, but when I want to run it again an error occur.

dlinano@jetson-nano:~/deepstream_sdk_v4.0.2_jetson/sources/apps/dli_apps/deepstream-test1-webcam_in$ ./deepstream-test1-app dstest1_pgie_config.txt 

 *** DeepStream: Launched RTSP Streaming at rtsp://localhost:8554/ds-test ***

Now playing: dstest1_pgie_config.txt
Opening in BLOCKING MODE 
Creating LL OSD context new
Running...
Creating LL OSD context new
NvMMLiteOpen : Block : BlockType = 4 
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4 
H264: Profile = 66, Level = 0 

(deepstream-test1-app:9087): GLib-GObject-WARNING **: 14:18:08.566: g_object_get_is_valid_property: object class 'GstUDPSrc' has no property named 'pt'
^Z
[1]+  Stopped                 ./deepstream-test1-app dstest1_pgie_config.txt
dlinano@jetson-nano:~/deepstream_sdk_v4.0.2_jetson/sources/apps/dli_apps/deepstream-test1-webcam_in$ 
dlinano@jetson-nano:~/deepstream_sdk_v4.0.2_jetson/sources/apps/dli_apps/deepstream-test1-webcam_in$ ./deepstream-test1-app dstest1_pgie_config.txt 

 *** DeepStream: Launched RTSP Streaming at rtsp://localhost:8554/ds-test ***

Now playing: dstest1_pgie_config.txt
Opening in BLOCKING MODE 
Creating LL OSD context new
Running...
ERROR from element camera-source: Device '/dev/video2' is busy
Error details: gstv4l2object.c(3754): gst_v4l2_object_set_format_full (): /GstPipeline:dstest1-pipeline/GstV4l2Src:camera-source:
Call to S_FMT failed for YUYV @ 640x480: Device or resource busy
Returned, stopping playback
Deleting pipeline

Hi,
We have the sample

deepstream_sdk_v4.0.2_jetson\sources\apps\sample_apps\deepstream-test1

But there is no sample called deepstream-test1-webcam_in
Probably it is something wrong in your customization. Form the log, seems like you don’t close /dev/video2 in intermination
ERROR from element camera-source: Device '/dev/video2' is busy