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 345301 - [PATCH] gst-plugins-good rtsp for Windows
[PATCH] gst-plugins-good rtsp for Windows
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Windows
: Normal enhancement
: 0.10.4
Assigned To: Wim Taymans
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-06-19 11:02 UTC by Joni Valtanen
Modified: 2006-07-24 13:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
rtspconnection for windows (11.88 KB, text/x-csrc)
2006-06-19 11:03 UTC, Joni Valtanen
  Details
real patch rc1 (1.55 KB, patch)
2006-06-20 05:44 UTC, Joni Valtanen
none Details | Review
forgot one ifdef so here is the new (1.51 KB, patch)
2006-06-20 07:22 UTC, Joni Valtanen
none Details | Review
..and should be final. #ifndef instead of #ifdef (1.51 KB, patch)
2006-06-20 07:25 UTC, Joni Valtanen
committed Details | Review
rc4 (1.67 KB, patch)
2006-06-20 11:06 UTC, Joni Valtanen
committed Details | Review
Patch to Makefile.am (1.01 KB, patch)
2006-06-20 13:39 UTC, Joni Valtanen
none Details | Review
Patch for current CVS version (2.65 KB, patch)
2006-06-22 09:44 UTC, Joni Valtanen
none Details | Review
Fixes to previous (2.80 KB, patch)
2006-06-22 09:57 UTC, Joni Valtanen
none Details | Review
More elegant solution (3.50 KB, patch)
2006-06-22 12:12 UTC, Joni Valtanen
committed Details | Review
adds <gst/gstinfo.h> to rtspconnection.c (310 bytes, patch)
2006-07-24 10:39 UTC, Joni Valtanen
none Details | Review

Description Joni Valtanen 2006-06-19 11:02:34 UTC
+++ This bug was initially created as a clone of Bug #345295 +++

Package gstreamer rtsp doesn't compile with windows.

-added nessessary Windows network stuff
-added inet_aton function
-tried to make it work with minimal modification to original
Comment 1 Joni Valtanen 2006-06-19 11:03:51 UTC
Created attachment 67617 [details]
rtspconnection for windows
Comment 2 Wim Taymans 2006-06-19 14:18:08 UTC
waiting for real patch.
Comment 3 Joni Valtanen 2006-06-20 05:44:34 UTC
Created attachment 67672 [details] [review]
real patch rc1
Comment 4 Joni Valtanen 2006-06-20 07:22:12 UTC
Created attachment 67674 [details] [review]
forgot one ifdef so here is the new
Comment 5 Joni Valtanen 2006-06-20 07:25:53 UTC
Created attachment 67675 [details] [review]
..and should be final. #ifndef instead of #ifdef
Comment 6 Wim Taymans 2006-06-20 10:32:02 UTC
        Patch by: Joni Valtanen <joni dot valtanen at movial dot fi>

        * gst/rtsp/rtspconnection.c: (inet_aton), (rtsp_connection_send),
        (rtsp_connection_close):
        Make RTSP plugin compile on windows. Fixes #345301.
        Some changes to original patch to catch errors better.
        use ifdef WIN32 instead of ifndef.
Comment 7 Joni Valtanen 2006-06-20 11:06:23 UTC
Created attachment 67703 [details] [review]
rc4

-some error printing
-fixed typo (socketclose to closesocket)
-properly ifdefs
Comment 8 Wim Taymans 2006-06-20 12:10:34 UTC
        * gst/rtsp/rtspconnection.c: (inet_aton), (rtsp_connection_send),
        (rtsp_connection_close), (rtsp_connection_free):
        Use better G_OS_* macros. Fixes #345301 some more.
Comment 9 Joni Valtanen 2006-06-20 13:39:38 UTC
Created attachment 67710 [details] [review]
Patch to Makefile.am

Adds WIN32_LIBS to library files
Comment 10 Tim-Philipp Müller 2006-06-21 13:14:24 UTC
> Adds WIN32_LIBS to library files

Where is WIN32_LIBS set in configure.ac? Couldn't find any reference to it in configure.ac or common/* or anywhere really. Did I miss it? 

Comment 11 Joni Valtanen 2006-06-22 09:44:28 UTC
Created attachment 67837 [details] [review]
Patch for current CVS version

Added error: RTSP_EWSTARTUP = -7 to file rtspdefs.h. 
Fixed socketclose to closesocket
Patch Makefile.am. 
See bug 345288 for configure.ac patch.
Comment 12 Joni Valtanen 2006-06-22 09:57:17 UTC
Created attachment 67839 [details] [review]
Fixes to previous

rtspdefs.h
removed:
  RTSP_EWSTARTUP  = -7
added:
  RTSP_EWSASTART   = -7,
  RTSP_EWSAVERSION = -8,

rtspconnection.c
added new error "codes" from rtspdefs.h
added g_warning printing to version_error.
Comment 13 Joni Valtanen 2006-06-22 12:12:47 UTC
Created attachment 67841 [details] [review]
More elegant solution

replaced closesocket and close in code with one CLOSE_SOCKET. 
CLOSE_SOCKET is defined in the beginning with ifdef.
Comment 14 Wim Taymans 2006-07-10 16:42:14 UTC
        * gst/rtsp/Makefile.am:
        * gst/rtsp/rtspconnection.c: (rtsp_connection_send),
        (rtsp_connection_close):
        * gst/rtsp/rtspdefs.h:
        replaced closesocket and close in code with one CLOSE_SOCKET.
        Some more cleanups. Fixes #345301.
Comment 15 Joni Valtanen 2006-07-24 10:39:13 UTC
Created attachment 69469 [details] [review]
adds <gst/gstinfo.h> to rtspconnection.c

Compiling without debugging in WIN32 complains about GST_DEBUG_OBJECT(...). This helps about it.

used versions if something to do with them:
gstreamer-0.10.8
gst-plugins-base-0.10.8
gst-plugins-good (cvs)
Comment 16 Wim Taymans 2006-07-24 11:00:41 UTC
removed the GST_DEBUG_OBJECT instead, it's not meant to be used in that code since it is supposed to be independant from GStreamer.

        * gst/rtsp/rtspconnection.c: (rtsp_connection_send):
        Remove unwanted DEBUG line.