After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 710415 - hdv1394src: Not possible to select a HDV camera from GUID
hdv1394src: Not possible to select a HDV camera from GUID
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.x
Other Linux
: Normal normal
: 1.3.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-10-17 19:28 UTC by Djalma Lucio
Modified: 2013-10-31 16:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch that solved the problem. (838 bytes, patch)
2013-10-17 19:28 UTC, Djalma Lucio
needs-work Details | Review
Patch that solve the problem in git format-patch (1.70 KB, patch)
2013-10-31 15:09 UTC, Djalma Lucio
committed Details | Review

Description Djalma Lucio 2013-10-17 19:28:13 UTC
Created attachment 257590 [details] [review]
Patch that solved the problem.

The Problem:
============
The source hdv1394src has the guid property that permits select a camera connected from its GUID number.

However when this property is setted the selected camera is not changed.
The source continues using the default camera.

Solution:
=========
I solved this problem investigating inside dvgrab source code.
This line does the miracle:
iec61883_cmp_connect( src->handle, m_node, &m_outputPort, raw1394_get_local_id( src->handle ), &m_inputPort, &m_bandwidth );

The reference for the command could be found here:
http://www.dennedy.org/libiec61883/API-iec61883-cmp-connect.html

I wait have helped.
Regards.
Comment 1 Sebastian Dröge (slomo) 2013-10-30 21:34:04 UTC
Can you provide the patch in "git format-patch" format? For this commit it locally with a useful commit message and call "git format-patch -1", then attach the created file.


Also please explain why this is necessary :)
Comment 2 Djalma Lucio 2013-10-31 15:09:42 UTC
Created attachment 258666 [details] [review]
Patch that solve the problem in git format-patch
Comment 3 Djalma Lucio 2013-10-31 15:13:09 UTC
This is necessary because we use 2 HDV cameras to make a stop-motion 3D stereo movie.
Comment 4 Sebastian Dröge (slomo) 2013-10-31 16:27:25 UTC
commit a22d61007aa7bf539ae735dbab6026d44729fe61
Author: Djalma Lúcio Soares da Silva <dlucio@impa.br>
Date:   Thu Oct 31 13:02:11 2013 -0200

    hdv1394src: Make it possible to select a camera by its GUID
    
    The source hdv1394src has the guid property that permits select a camera
    connected from its GUID number.
    However when this property is setted the selected camera is not changed.
    The source continues using the default camera.
    
    This problem was solved using the function iec61883_cmp_connect.
    The reference for the function could be found here:
    http://www.dennedy.org/libiec61883/API-iec61883-cmp-connect.html
    
    The solution came from dvgrab source code.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710415