Skip to content

videoio: Fixed relative paths handling in GStreamer backend#15877

Merged
opencv-pushbot merged 1 commit intoopencv:3.4from
mshabunin:fix-gst-relative-34
Nov 10, 2019
Merged

videoio: Fixed relative paths handling in GStreamer backend#15877
opencv-pushbot merged 1 commit intoopencv:3.4from
mshabunin:fix-gst-relative-34

Conversation

@mshabunin
Copy link
Copy Markdown
Contributor

This pullrequest changes

Replaced g_filename_to_uri call with gst_filename_to_uri which handles relative paths correctly.

Test scenario:

cap = cv2.VideoCapture('test.mp4', cv2.CAP_GSTREAMER) # did not work - fixed
cap = cv2.VideoCapture('/home/user/test.mp4', cv2.CAP_GSTREAMER) # worked

Copy link
Copy Markdown
Member

@alalek alalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@opencv-pushbot opencv-pushbot merged commit fccf284 into opencv:3.4 Nov 10, 2019
@alalek alalek mentioned this pull request Nov 11, 2019
@mshabunin mshabunin deleted the fix-gst-relative-34 branch July 14, 2020 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants